Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 330 Bytes

08-passing-arrays-and-objects-with-props.md

File metadata and controls

7 lines (4 loc) · 330 Bytes

Passing Arrays And Objects With Props

You can pass arrays, functions and objects as props to a component.

The approach is the same as passing any other type of prop.

Just keep in mind that if you were not to destructure the prop, you would need to access it using the props keyword, so for an object it is one layer deeper.