Render props with async components

A single function child works as a render prop: the component loads the data, and the caller decides how it looks.

A component receives its children as written, so the same <Jokes> loader is used twice below with different markup. Reload for new jokes.

As a list

  • To understand what recursion is... You must first understand what recursion is
  • A SQL query walks into a bar, walks up to two tables and asks... 'Can I join you?'
  • What's the object-oriented way to become wealthy? Inheritance

As cards

Joke #1

Why can't your nose be 12 inches long?

Because then it'd be a foot!

Joke #2

Why did the mushroom get invited to the party?

Because he was a fungi.