I have an object with the following structure:
{1:[{1:1, 2:2 ...}, {1:1, 2:2 ...},...] 2:[{1:1, 2:2 ...}, {1:1, 2:2 ...}, ..]}
I want to reference the first or second property in a react component stateless with a prop and make map to render the component How can I reference the first or second property?
<div id='drum-pads'>{Object.keys(o).map(d => (
<Pad
key={d.name}
id={d.name}
letter={d.shortcut}
src={d.link}
handleDisplay={props.handleDisplay}
/>
))}
</div>