Closed iandunn closed 8 years ago
Since switching to using Babel, which handles both the transformation of ES6=>ES5 and JSX=>JS, all javascript files are passed through the transpiler, so I don't think using the jsx
extension is a good idea. It means that files have to be renamed if JSX is added, adds a little complexity, and is a convention that is easy to sidestep because using .jsx
isn't necessary for the JSX=>JS transformation to occur.
Cool, thanks for taking the time to look at it :)
This helps IDEs and text editors correctly identify the file type so that they can perform syntax highlighting, code sniffing, etc.