Render props with async components
A component receives its children as written, like in React: one child is passed as it is, several children as an array, and without children there is no children prop at all. So a single function child works as a render prop: the component loads the data, and the caller decides how it looks.
The same <Jokes> loader is used twice below with different markup. Reload for new jokes.
As a list
- What did the router say to the doctor? - It hurts when IP.
- How many programmers does it take to change a lightbulb? - None, that's a hardware problem.
- An IPv6 packet is walking out of the house. - He goes nowhere.