3 ms·
Funnily enough, I did this as a quick example for my generic-JSX blog post a few years ago (http://tolmasky.com/2016/03/24/generalizing-jsx/ http://tolmasky.com
by tolmasky 7y ago
Funnily enough, I did this as a quick example for my generic-JSX blog post a few years ago (http://tolmasky.com/2016/03/24/generalizing-jsx/ http://tolmasky.com/2016/03/24/generalizing-jsx/).
You can see it here, it creates JSX definitions from Babel AST definitions, so you end up with Babel/MDN compatible trees: https://runkit.com/tolmasky/generic-jsx-for-babel-javascript-ast https://runkit.com/tolmasky/generic-jsx-for-babel-javascript...