AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
React Is a Framework, It's Calling Into Your Functions
The browser is often switching between the user's application code and painting the elements that are being loaded on the browser. So with concurrent mode, because react is a framework, it is its calling into your code as as the user of react. And so every single one of your function components, react is going to be calling into. That function component will return the react elements that it needs to render. Because react is in control of all this then it's able to do these checks to say, based on how long i've been running right now, i have amount of mill a seconds left before i need to yield to the browser.