Open in app
Charles Stover
2.7K Followers
About

Sign in

2.7K Followers
About
Open in app
Charles Stover

Charles Stover

May 2, 2019·1 min read

Yes! You can use it in any Component that is imported from reactn — and it will re-render all other Components using the global state property that changed.

Charles Stover

Senior front end engineer / charlesstover.com

Can I use SetGlobal in more than one component?
1

linga sivaramakrishna

More from Charles Stover

Senior front end engineer / charlesstover.com

More From Medium

Replacing let with const

Charles Stover

New to React? Here are 10 tips you should know

Charles Stover

How to Apply Dark Mode to AWS UI Components

Charles Stover

Testing AWS UI components with Jest

Charles Stover

Write actionable backlog items

Charles Stover

Use the React context API instead of mocking in unit tests

Charles Stover

How to Apply Your Brand’s Theme to AWS UI Components

Charles Stover

Optimal VS Code settings

Charles Stover

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store