2min chapter

JavaScript Archives - Software Engineering Daily cover image

React Best Practices with Kent Dodds (Repeat)

JavaScript Archives - Software Engineering Daily

CHAPTER

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.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode