[SOLVED] Meteor 1.3 modules and JSX

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 )

Another possibly related GitHub issue: https://github.com/meteor/meteor/issues/5862

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.

1 Like

Yep,that worked! That solved the error in that GitHub issue too.