---
title: "Discussion on \"Get global variables in React JS\" | Hashnode"
description: "Discussion on \"Get global variables in React JS\". Let's suppose you are making an app that makes a lot of requests to the backend at http://localhost:3000. Now you move to production build, and the URL is changed to https://yasharyan.com after hosting it on whatever hosting service you are using. Im..."
url: "https://hashnode.com/posts/get-global-variables-in-react-js/5fce64c1b893f0197d598f7c"
---

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

Discussion

# [Get global variables in React JS](https://blogs.yasharyan.dev/get-global-variables-in-react-js?utm_source=hashnode&utm_medium=feed)

Let's suppose you are making an app that makes a lot of requests to the backend at http://localhost:3000. Now you move to production build, and the URL is changed to https://yasharyan.com after hosting it on whatever hosting service you are using. Im...

Dec 7, 2020 · 9 min read · blogs.yasharyan.dev  
Updated Jan 28, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Yash Aryan](https://hashnode.com/@yasharyan)

@yasharyan · India

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

Full stack web developer

I like designing websites, discussing ideas, and meeting new people bundled with a deep passion for building things from scratch. I have an immense craze for DIYs, fiction, country music, and movies. I am always learning new things that make me a better developer everyday. I am open to new ideas and hop onboard new projects if I like them. I'm always full of ideas, so you'll always find me working on something or the other.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
