I’m fiddling around with React, and I want to create a calendar app that will hold several events per calendar day.
I’m thinking my state would look like this:
this.state = [
{
date: '01-01-2019'
{event: 'blah blah blah', notes: 'this and that'};
},
{
date: '01-02-2019'
{event: 'blah blah blah', notes: 'this and that'},
{event: 'gib gib glab', notes: 'here and there'},
{event: 'nope nope nope', notes: 'yes indeed'};
}
-continued to 12-31-2019-
]
Offhand, that seems like a huge amount of data to leave in state.
I really only want it to render 30 days at a time, but I also want to go backwards and look at historical events too.
But, I guess I really want to know what the practical limits are…