I have this state which is store in a single object, the subject are the keys.
My code, I need to pass the corresponding array to Timeline component,(Timeline component will handle the mapping of array that will be pass) any idea?
Object.keys(newTimelineData).map(title => (
<Timeline
chartId={title}
timelineData={title.array} // array should be here
{...timelineChartProps}
/>
)