You don't need to pass the name to an h1 as a prop. Just use <h1>{}</h1> instead of what you have there.

You also are using the wrong format for props. Wrap persons:Array<personType> in file 2 in curly brackets.

Lastly, you will need to make sure you are rendering the elements component. If you are not rendering it, it doesn't do anything. When you render it, do it like this:

// replace personsArray with the name of your array
<Elements persons={personsArray}/>

Related Query

More Query from same tag