1WARNING: Do not store any secrets (such as private API keys) in your React app!
2
3Environment variables are embedded into the build, meaning anyone can view them by inspecting your app's files.
4
5outside our src folder create .env file and add it to gitignore
6REACT_APP_WEATHER_API_KEY=123456
7inside where you want to access the variable
8const API_KEY = process.env.REACT_APP_WEATHER_API_KEY;
9
10make sure to restart the server