Is .jsx needed in import statements?


#1

I know that import statements don’t require the .js extension.

Is this also true of the .jsx extension?


#2

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.