I have an state like this
[
{note,header,id},{note,header,id}....
]
And now i want to add checklist, but i really confuse how to struct the data, i'm willing to do something like
[
{note:[if array then checklist or if string will be note],header,id}....
]
Or
[
{note,header,id, checklist}....
]
Or format like
{
note:[
{note,header,id}....
],
checklist:[checklist,header,id]...
}
Both notes and header will have header