I’ve always wondered when looking at React components why this example needs its parameters passed…
Jono Lewis

Hi Jono,

Functional components receive the props object as their first argument. Since rendering a component is not exactly like calling a function, you can only pass data down via that props object.

What you see above is the props object being destructured.

Like what you read? Give Scott Domes a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.