react-magic icon indicating copy to clipboard operation
react-magic copied to clipboard

option to include 'module exports' instead of react component for htmltojsx command line

Open solugebefola opened this issue 10 years ago • 2 comments

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.

solugebefola avatar Jan 21 '16 14:01 solugebefola

Perhaps it should use ES2015 module syntax, since module.exports syntax will disappear eventually as people standardise on ES2015 modules instead.

Daniel15 avatar Apr 25 '16 05:04 Daniel15

That's a good idea, I will modify the PR soon

solugebefola avatar Apr 26 '16 15:04 solugebefola