Consider two arrays:
props = ['prop1','prop2','prop3']
about = ['about1','about2','about3']
I'm looking to display them in a way where the index of each array is paired to the other, sort of like:
props[0] - 'prop1'
about[0] - 'about1'
props[1] - 'prop2'
about[1] - 'about2'
So far i've tried nesting two maps together but i'm getting an output of many repetitive or invalid values. Does anyone know how I can tweak the solution I have to properly display the arrays with map?
props.map( arg => {
return (
about.map ( arg2 => {
<div>
<p> {arg} </p>
<p> {arg2} </p>
</div>
})
);
})