COMPRESSEDfm cover image

47 | Brain Dump on React Hooks

COMPRESSEDfm

00:00

Using Use Effect to Update a Component

The dependency ray idea is really pretty important. So you mention the i think its component did and then there's also a component did up date. An inside of that dependency. Ray, like you said, you'll list out what are the different pieces of state that i care about so if those pieces of state change, i want to re calculate something. Next one that we have on our list is use effect. And again, this is just a function that react provides that you can call. But the cool thing about this is that you can use use effect to up date different parimeters when certain values up date.

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