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.

Show your support

Clapping shows how much you appreciated Scott Domes’s story.