When should I use a MobX observable instead of a React state variable?

前端 未结 0 1322
长情又很酷
长情又很酷 2020-11-30 17:08

I\'m a bit confused. I usually use observables for all the variables that affect what is rendered. But is that the correct way? When should I use state instead of an observa

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