I know that import statements don’t require the .js extension.
Is this also true of the .jsx extension?
I know that import statements don’t require the .js extension.
Is this also true of the .jsx extension?
The .jsx extension is not required but remember if you have a file with the exact same name but different file extension, e.g. NavBar.jsx and NavBar.scss the import would probably raise an error.
Happened to me several times.