---
title: "Discussion on \"Using .env in React\" | Hashnode"
description: "Discussion on \"Using .env in React\". There comes a time when you'll need to hide away the values of certain variables. A popular reason to do so is when you have a secret and an ID from an API that you don't want to expose to the internet. This happened to me recently when building a Sp..."
url: "https://hashnode.com/posts/using-env-in-react/61aff843079fa33c0861008f"
---

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

Discussion

# [Using .env in React](https://rainswerld.com/using-env-in-react?utm_source=hashnode&utm_medium=feed)

There comes a time when you'll need to hide away the values of certain variables. A popular reason to do so is when you have a secret and an ID from an API that you don't want to expose to the internet. This happened to me recently when building a Sp...

Dec 8, 2021 · 3 min read · rainswerld.com  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)

## Written by

[Rain Robinson](https://hashnode.com/@rainswerld)

@rainswerld

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

Full-Stack & DevOps

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
