You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just tiny and naive implementation of virtual dom to html string. I think is pretty enough. I'll going to add self-closing tags support soon. It is just a matter of few lines.
Using https://github.com/tunnckoCore/mich-h you can create HAST-compliant virtual trees. Then passing it to mich-to-html you get a HTML string. You can also write JSX instead of hyperscript compatible syntax if you use the jsx pragma. Actually mich-h is fully compatible with hyperscript and even have a bit better parsing of css selectors (the first argument) through mich-parse-selector
All mich related things are just part of the upcoming chika (readme isn't real, just scaffolded it to see how it would look :) badges aren't real, nor examples)
The text was updated successfully, but these errors were encountered:
I just feel that the stuff is would go more crazy and crazy, when publish rollup-plugin-jstransformer. Just imagine UI lib based on Rollup and JSTransformers. It will be abled to compile chika/mich-h components with rollup through JSTransformer. Kinda what svelte does, haha.
https://github.com/tunnckoCore/mich-to-html
Just tiny and naive implementation of virtual dom to html string. I think is pretty enough. I'll going to add self-closing tags support soon. It is just a matter of few lines.
Using https://github.com/tunnckoCore/mich-h you can create HAST-compliant virtual trees. Then passing it to
mich-to-html
you get a HTML string. You can also write JSX instead ofhyperscript
compatible syntax if you use the jsx pragma. Actuallymich-h
is fully compatible withhyperscript
and even have a bit better parsing of css selectors (the first argument) throughmich-parse-selector
or without breaking the javascript
All
mich
related things are just part of the upcoming chika (readme isn't real, just scaffolded it to see how it would look :) badges aren't real, nor examples)The text was updated successfully, but these errors were encountered: