Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Whats the reason to always use .jsx instead of .js #1235
Comments
|
See the discussion in #985, but essentially, |
|
.jxs will describe the pupose/contents of the file from a higher level .It'll be easier while navigating to different files across the project. |
|
It seems like the react team at facebook and the airbnb team that own the most popular javascript style guide here are at odds with each other over file extensions. Airbnb team seems adamant about not having any non standard code in a and this pull #985 and names any files with the stuff should have Facebook team seems adamant that facebook/create-react-app#87 (comment) For my (and probably others) future reference when setting up a new js repo with the |
Yeah, I know, there are debates about this. I fall on the side of airbnb here: airbnb/javascript#1235 (comment)
Hello, I would like to know about using .js and .jsx as an extension of the React files:
Are there any differences? Which are?
Thanks