DEV Community

Discussion on: How to use the Google Maps API with React.js

Collapse
 
dschulz1227 profile image
Damon Schulz

I am trying to hide my API key by putting it in a default.json in a Config folder and hiding it. it's under my 'src' folder, but when I go to import it to my Map component, it says it is outside of the project '/src' directory. I've tried numerous ways, do you have any idea what I should do?