How to use React Context API to have a state across multiple Routes?

后端 未结 0 1576
深忆病人
深忆病人 2020-11-22 02:53

I\'m trying to understand how the context API works. I\'d like to keep a global state that I can update from any Class Component. Currently, when I try to update my Context

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