Sam Pakvis
1 min readNov 3, 2018

--

Hi Matt,

create-react-app has built-in support for environment variables. The only thing that you have to do is create a .env file in the root of you project and prefix your variables with REACT_APP_. When you use ’em in your code, create-react-app automatically compiles them.

--

--

Sam Pakvis
Sam Pakvis

Written by Sam Pakvis

I eat frozen bread like toast

No responses yet