Re:Maquette – Pure and simple virtual DOM library
by yladiz on Monday August 29, 2016 @09:45PM
(#12386860)
Barring adding a build step, why couldn't you compose a function that returns JSX?
[ Parent
| on HN ]
Re:Maquette – Pure and simple virtual DOM library
by __derek__ on Monday August 29, 2016 @10:25PM
(#12387036)
Or just skip JSX and use ReactDOM directly.[1] JSX is just sugar for the functions underneath, after all.
[1]: https://facebook.github.io/react/docs/top-level-api.html#rea...
Re:Maquette – Pure and simple virtual DOM library
by hashkb on Monday August 29, 2016 @11:07PM
(#12387213)
Isn't that a lot like hyperscript? Maybe I like this or mercury or I one of the other varieties better for one reason or another. Is ReactDOM the best fit for everyone?
Re:Maquette – Pure and simple virtual DOM library
by __derek__ on Tuesday August 30, 2016 @01:13PM
(#12391937)
I've never used HyperScript, and I made no claims about anything being the ONE TRUE TOOL. I suggested that yladiz's recommendation would fit your described preferences better without injecting JSX.