HomeReact Use custom environment variables in a React app byAlex R. •January 08, 2024 In react we can use custom variables provided in the .env files, however for custom variables, the name of the variable must start with REACT_APP_, e.g. REACT_APP_API_URL=/customApiUrl Tags React Facebook Twitter