---
title: "Discussion on \"How to Use Environment Variables in Vite (React Template Example) and in CRA (Create React App)\" | Hashnode"
description: "Discussion on \"How to Use Environment Variables in Vite (React Template Example) and in CRA (Create React App)\". Discover how to effectively manage environment variables in React applications using .env files. Learn the differences between Create React App (CRA)."
url: "https://hashnode.com/posts/how-to-use-environment-variables-in-vite-react-template-example-and-in-cra-create-react-app/65093ff107dc89c2a932ee83"
---

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

Discussion

# [How to Use Environment Variables in Vite (React Template Example) and in CRA (Create React App)](https://blog.nishitbaria.tech/how-to-use-environment-variables-in-vite-react-template-example-and-in-cra-create-react-app?utm_source=hashnode&utm_medium=feed)

Discover how to effectively manage environment variables in React applications using .env files. Learn the differences between Create React App (CRA).

Sep 19, 2023 · 3 min read · blog.nishitbaria.tech  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#vite](https://hashnode.com/tag/vite)
-   [#best-practices](https://hashnode.com/tag/best-practices)
-   [#wemakedevs](https://hashnode.com/tag/wemakedevs)
-   [#wemakedevs-hashnode-napptivecompany](https://hashnode.com/tag/wemakedevs-hashnode-napptivecompany)

## Written by

[Nishit Bariya](https://hashnode.com/@Nishitbaria)

@Nishitbaria · Gujarat, India

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

Building http://Bundled.Design | Nextjs/React developer | React Native | Open for freelance work | Indie Hacker

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
