TypeScript React Context API

前端 未结 0 853
挽巷
挽巷 2021-02-13 04:06

I created a User Context API (code here: https://pastebin.pl/view/e0b5e0f4), then I can read it like this:

const { state: { user }, dispatch} = useUserContext();
         


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