React JS Error: is not defined react/jsx-no-undef
Try using
import Map from './Map';
When you use import 'module'
it will just run the module as a script. This is useful when you are trying to introduce side-effects into global namespace, e. g. polyfill newer features for older/unsupported browsers.
ES6 modules are allowed to define default exports and regular exports. When you use the syntax import defaultExport from 'module'
it will import the default export of that module with alias defaultExport.
For further reading on ES6 import - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
you should do import Map from './Map'
React is just telling you it doesn't know where variable you are importing is.