This is a sample project from my medium article about how to hide API key.
Medium: [React.js] How to hide your API key when uploading your code on GitHub
git clone https://github.com/eastend-street/react-env-sample.git
yarn install
// .env.development.local
REACT_APP_SOME_API_KEY="this-is-apy-key"
yarn start