-
Notifications
You must be signed in to change notification settings - Fork 26.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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)
Since you can't use JSX tags in a console, they aren't normal .js stuff. And .jsx helps differentiate files. |
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
The text was updated successfully, but these errors were encountered: