react-magic
react-magic copied to clipboard
option to include 'module exports' instead of react component for htmltojsx command line
Perhaps a -e to add module.exports? I modded the cli.js in order to be able to require the generated file and insert into another component's render function directly.
Perhaps it should use ES2015 module syntax, since module.exports syntax will disappear eventually as people standardise on ES2015 modules instead.
That's a good idea, I will modify the PR soon