in map.jsx
or map.js
file, if you exporting as default like:
export default MapComponent;
then you can import it like
import MapComponent from './map'
but if you do not export it as default like this one here
export const MapComponent = () => { ...whatever }
you need to import in inside curly braces like
import { MapComponent } from './map'
**Here we get into your problem:**
sometimes in our project (most of the time that I work with react) we need to import our styles in our javascript files to use it. in such cases we can use that syntax because we have a bundler like Webpack that takes care of it, then later on, when we want to bundle our app, Webpack is going to extract our CSS files and put it in a separate (for example) app.css file. In those situations, we can use such syntax to import our CSS files into our javascript modules.
like below:
import './css/app.css'
if you are using sass all you need to do is just use sass loader with webpack!