fireship-io / fireship.io

Build and ship your app faster https://fireship.io
3.58k stars 1.32k forks source link

courses/react/basics-lifecycle/ #773

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Lifecycle and Effects

Working with the useEffect hook

https://fireship.io/courses/react/basics-anatomy/

raulriera commented 2 years ago

Thanks for the explainer, curious why this example will constantly unmount on every tick(), my assumption would be that Countdown is not constantly destroyed and recreated, but I guess it's wrong. Is there anywhere I can find more information about what is going on under the hood of every render?

Thanks