The React Show cover image

React Component Lifecycle, What is a Component?

The React Show

00:00

How Does React Track Your Components Definition?

Every time that parent function renders, it's defining a new function definition. And so every single time reacts, coin to be like, oh, that function definition changed. It just checks to see if the definitioni if some data structure variable or something, has changed. That's why i don't suspect we're going to be able to do what i want to do any time soon. A i think that's not a a straightforwardem to answer because what we're really saying is, don't unmount and remount a component unless the actual definition of that component has changed,. So you'd have to like, track the, essentially the source of the function and make sure the entire source

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