How do we use JSX in our Meteor 1.3 ES2015 modules? This topic on GitHub suggests that we just install ecmascript, and simply rename .js files to .jsx if they use JSX.
(@benjamn )
How do we use JSX in our Meteor 1.3 ES2015 modules? This topic on GitHub suggests that we just install ecmascript, and simply rename .js files to .jsx if they use JSX.
(@benjamn )
According to this commit in ecmascript package, you’ve to specify your file extension as .jsx whenever you want to use JSX or else you’ll receive a lot of weird errors (from my personal experience) if you try to use JSX in a .js file.
Yep,that worked! That solved the error in that GitHub issue too.