---
title: "Discussion on \"How To use .env in Reactjs\" | Hashnode"
description: "Discussion on \"How To use .env in Reactjs\". To use .env in react :\n\\=> You need to create .env file .\n\\=> Open the .env file and declare your environment variable.\nREACT_APP_NAME=react app\nREACT_APP_CLIENT_ID=adkksclsc.cscd52\n\nNote: React enforces the prefix REACT_APP on every custom variable...."
url: "https://hashnode.com/posts/how-to-use-env-in-reactjs/651c02db33281874e1ea60c2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To use .env in Reactjs](https://ayoubblog.com/how-to-use-env-in-reactjs?utm_source=hashnode&utm_medium=feed)

To use .env in react : \\=> You need to create .env file . \\=> Open the .env file and declare your environment variable. REACT\_APP\_NAME=react app REACT\_APP\_CLIENT\_ID=adkksclsc.cscd52 Note: React enforces the prefix REACT\_APP on every custom variable....

Oct 3, 2023 · 1 min read · ayoubblog.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Ayoub ElGueddari](https://hashnode.com/@ADev1)

@ADev1

  
[View profile](https://hashnode.com/@ADev1)

Full Stack Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
