How to correctly check for a value in react useContext and return a statement

前端 未结 0 1331
小鲜肉
小鲜肉 2020-12-31 13:23

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

相关标签:
回答
  • 消灭零回复
提交回复
热议问题