vhtml icon indicating copy to clipboard operation
vhtml copied to clipboard

Render JSX/Hyperscript to HTML strings, without VDOM 🌈

Results 26 vhtml issues
Sort by recently updated
recently updated
newest added

Option 2 from https://github.com/developit/vhtml/issues/25. Thought I would throw this together for easy comparison between the 2 approaches. fixes: #25, #19

__Updated with new approach__ This PR changes the behavior of `h()` from immediately executed functions, to a function that first creates element instances, and then later resolves them to a...

check child null, otherwise when child is zero, it wont display

Passing in number 0 as a child would result in nothing being rendered. See test: https://github.com/dburles/vhtml/blob/88278a1fb47f93edb40e974ab4eaf6923169f4a4/test/vhtml.js#L169-L178

Hi, I tried vhtml and it looks fine. However, to integrate it in my stack I need to make it properly working with .flowconfig * what's the pragma @jsx syntax...

Is it possible to render HTML comments, I am using this to render server side templates, and it would be useful to print out html comments so it helps with...

question

Moves the main function to its own export so it can be used separately. Also, adds `String()` to the returned values so it can be used with `toString()` Adds 23...

What it says on the tin. es3 removes `defineProperty` and `freeze`, but those are no longer added by Rollup/Babel. It was also wiping sourcemaps, so this fixes that too.

Why does this library exist when you can just use template strings? ```js function myComponent(props) { return `${props.name}` } ```

Here are the follow changes: - convert code to typescript - add comment tag '!' to h( ) - add textnode tag 'text' to h() - generate .d.ts, and un-minify...