require() and transform jsx from node using
If you want to use a different extension, do:
Then in you code you can require jsx on the fly:
Babel is too slow as of version 6.2.1 for transforming jsx. Average 40 times slower than the
jstransform implementation. That's very annoying if you have many jsx files.
require('view.jsx!') is very helpful if you share jsx between server/client side and using tools like jspm to do in-browser transforming for development.