Anyone know of a simple tool (cmd line would be fine) for converting a JSX snippet to a react-hyperscript snippet? My use case is making it easy to plop JSX examples into my code which is not setup for JSX.
I googled a bit and didn't find anything...
Sorry if this is an inappropriate place to post this. I guess I'm trying to slide it in under "feature suggestion..."
I find that running Babel (usually I just use the REPL on their website) gets most of the way there. Then I can replace React.createElement with h and reformat
Anyone know of a simple tool (cmd line would be fine) for converting a JSX snippet to a react-hyperscript snippet? My use case is making it easy to plop JSX examples into my code which is not setup for JSX.
I googled a bit and didn't find anything...
Sorry if this is an inappropriate place to post this. I guess I'm trying to slide it in under "feature suggestion..."