The React Show cover image

React FAQ

The React Show

00:00

Why Does Your Component Render Two Times?

react is essentially trying to get us ready for the future. It will be rendering your component in sort of unexpected times, you know, maybe more than once with the same input or because they're working on a pis that will allow them to start and stop and resume and suspend the rendering of a component. This is one of the reasons why. So, why does your component render twice? This is actually just something that will happen in development, but not production mode. But it's the way react is supposed to work.

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