Why do I have to tell Adobe Brackets it's JSX, not JS, everytime I open a React.js file?

96 Views Asked by At

Isn't it supposed to automatically identify the file as JSX? All the curly braces, html, etc.

example

1

There are 1 best solutions below

0
Marcos Bacon On

Setting jsx as default for my js files didn't work, but I researched a little bit further and found that I can just change all the js file extensions to jsx, which won't crash React.