https://learn.freecodecamp.org/front-end-libraries/react/use-react-to-render-nested-components
I’ve completed all of the criteria except for “The TypesOfFood component should return the Fruits component.” I called TypesOfFruit in Fruit as such:
{TypesOfFruit()}
But calling Fruit in TypesOfFood the same way doesn’t work:
{Fruits()}
I’ve tried variations, like {this.Fruits()} or {this.state.Fruits()} but nothing works. How am I supposed to call it?