---
title: "Discussion on \"How to use .env in a React app using Create React App?\" | Hashnode"
description: "Discussion on \"How to use .env in a React app using Create React App?\". .env files are extremely useful to hide secret keys like API keys in your project."
url: "https://hashnode.com/posts/cra-env/6325f121dd55cd8b89b1f91f"
---

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

Discussion

# [How to use .env in a React app using Create React App?](https://blogs.bigomega.dev/cra-env?utm_source=hashnode&utm_medium=feed)

.env files are extremely useful to hide secret keys like API keys in your project.

Oct 20, 2019 · 3 min read · blogs.bigomega.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#create-react-app](https://hashnode.com/tag/create-react-app)
-   [#environment-variables](https://hashnode.com/tag/environment-variables)
-   [#secretmanager](https://hashnode.com/tag/secretmanager)
-   [#security](https://hashnode.com/tag/security)

## Written by

[Prashant Acharya](https://hashnode.com/@prashantacharya)

@prashantacharya · Kathmandu, Nepal

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

Software Engineer based on Kathmandu

I am a full-stack developer with 5 years of experience building web applications. Skilled in technologies such as JavaScript, TypeScript, Node.js, Go, React, and PostgreSQL. I have a strong understanding of web development principles and the ability to handle both front-end and back-end tasks. Always eager to learn new technologies and improve my skills.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
