Currently I can only use .js files, in case I try to use .jsx, this will cause an error. Here's the problem: I usually use code formatters, and writing jsx and formatting in js files, causes the code to be completely out of order, also causing syntax errors.
I am new to React, so I do not know how to configure to use jsx files, at least in other than the main files (index.js).
I've seen about the eject script, but there seem to be some drawbacks in using this.
Is there any solution for using jsx files without running "npm run eject"?
EDIT: The error is something like, "Could not import XXX file from filename.js", that is, when I try to import from a filename.jsx file, it searches only for filename.js files, and as there is no file. js, I can not care.
EDIT2: As said in a comment, just reboot the server, and I think I was changing from js to jsx when the server was already running, now I've changed and rebooted and it seems to be working
react-scriptsdo you have?.jsxand.jsfiles