The React Show cover image

It’s Not Your Fault You Don’t Understand The Code

The React Show

00:00

React Decoupling - A Great Way to Decouple React From React

A lot of times, you don't really need to show the user all of this intermediate state changes. You could do your computations on state that doesn't live inside React and then have a timer in your React component that every second triggers React to re-render your progress bar or whatever it is. This would be a fantastic technique to pull out whenever you are running into these situations where you're like, oh, I have a bunch of intermediate state. Maybe I want to show some of it so it feels responsive and there's something going on.

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