You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't get that to work. I'm finding that if I name my files with the JSX extension, I have to put the full path with extension in the import statement, and I don't want to do that:
// I don't like this
import Footer from './Footer/Footer.jsx'
// I don't like this either
import Footer from './Footer/index.jsx'
I'm pretty new to React, am I missing some babel plugin or just misunderstanding? Thanks.
The text was updated successfully, but these errors were encountered:
https://github.com/airbnb/javascript/tree/master/react#naming says to use the JSX file name extension.
Then, a few paragraphs later, there is this code:
I can't get that to work. I'm finding that if I name my files with the JSX extension, I have to put the full path with extension in the import statement, and I don't want to do that:
I'm pretty new to React, am I missing some babel plugin or just misunderstanding? Thanks.
The text was updated successfully, but these errors were encountered: