The type of the array of objects looks as follows: MyType: { name: string, age: number }[]
, props type in component is the same
./Parent.jsx
export const Parent = () => {
return (
<Content data={arrOfObj} />
)
}
./Content.jsx
export const Content: React.FC<MyType> = (data) => {...}