Chapter 4 · Example 3 · Advanced configuration with render props

Children as a render function

Making children a function instead of an element means Parent calls children() to render it, and the nested JSX syntax still works the same way.

Loading live editor…