
React Tools - 001
Syntax - Tasty Web Development Treats
00:00
How to Use Get Initial Props in React
It adds this concept called get initial props, which is not a standard React lifecycle method. And by doing that, what you can do is you need to fetch any data on the server before it actually kicks the HTML out to you. It will hold up rendering that component because it's a sync until you do like an Ajax request or something and bring it back for the render to happen. But again, that isn't there if you need to preload some of your pages.
Play episode from 10:05
Transcript


