importing env variable react front end
You don’t need dotenv (and I doubt that library will work at runtime in a client-side application anyway). create-react-app actually provides this functionality out of the box, assuming you’re using react-scripts@0.5.0 or higher. The steps are as follows: Create a .env file in the root of your project. Add a variable, starting with the prefix … Read more