3 ms·
Buttons, headings, labels... Will all be ready when your data arrives.
by jacobr 7y ago
Buttons, headings, labels... Will all be ready when your data arrives.
- JMTQp8lwXL 7y agoYou can already do that without concurrent mode, though. Let's say you have a navbar (your website's header), a list of things asynchronously retrieved from an API, and a footer. const myApp = () => ( <Header /> <Body /> <Footer /> ); Body can make the network request, and store the result in state. Since the network request took 200ms, Header and Footer have already rendered.