Using React without .jsx extension

I’m just following the React tutorial at https://www.meteor.com/tutorials/react/components . It is stating that react code go into file with the .jsx extension. Does this mean that I can add the rest of the app’s javascript to these .jsx files, or can I, conversly, add the react code to my existing .js files?

I would just recommend not even using the .jsx extension as it’s no longer necessary.

Yeah the best practice for react is now becoming to just use the ‘js’ extension for everything. Perhaps we should go all in on that.

2 Likes

:smiley: I step away from the React forums and find myself completely out of date!

1 Like

Thanks for the reply. Would it be possible to add similar dropdown to the tutorials (as is used in the documentation pages) to reflect which version/subversion of Meteor they are applicable to?