Function as child

Function as Child Component (or FaCC) is a pattern that lets you you pass a render function to a component as the children prop.

It exploits the fact that you can change what you can pass as children to a component.

When you use a FaCC, instead of passing JSX markup, you assign children as a function.

Above example can we very slightly varied to pass the render function as child instead of being passed as a prop.