The main concept is that, instead of passing a child in the form of a component, we define a function that can receive parameters from the parent. Let's see what it looks like:
const FunctionAsChild = ({ children }) => children()
FunctionAsChild.propTypes = {