Check out example codes for "types of property length are incompatible". It will help you in understanding the concepts better.

Code Example 1

{name: string}[]

// Or if you prefer:

Array<{name: string}>

Learn ReactJs, React Native from akashmittal.com