Can React.createContext be exported from a function

前端 未结 0 335
一生所求
一生所求 2021-01-04 06:58

I\'m trying to pass in a dynamic data as a default value to React.createContext like this

export const UserContext = loggedinUser =>  React.createContext(l         


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