The React Show cover image

Thinking in React

The React Show

00:00

Using React to Store State in React

In this episode, we explore the effects of using refs to store all of our state. The normal way of storing state in React is with regular JavaScript variables. But a ref allows you to change that state and it won't cause React to re-render whatever component that ref is specified in. This might sound kind of weird, like, why would you ever want to do that? It's actually interesting reasons.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app