Im currently using React.useContext to store an array with objects like this:
{ enable: true, id: 1 }
I made a switch that update the value