I'm currently struggling to understand how to get the section headers working. My data structure is like so:
[{
title: 'Header One',
data: []
}, {
title: 'Header Two',
data: []
}]
Where data is an array of objects.
renderSectionHeader(sectionData, sectionID) {
console.log('Section ID:', sectionID);
console.log('Section Data:', sectionData);
This just returns s1 and the whole data set. How do I specify/break-up this data?
I've tried looking at the examples, but I'm finding it hard to see what the structure is like.
I'm currently struggling to understand how to get the section headers working. My data structure is like so:
Where
datais an array of objects.This just returns
s1and the whole data set. How do I specify/break-up this data?I've tried looking at the examples, but I'm finding it hard to see what the structure is like.