How to update react hook when navigator/window changes?

后端 未结 0 686
生来不讨喜
生来不讨喜 2020-12-23 15:18

I have made a hook to get navigator object with useEffect like this:

function useNavigator () {
  const [n         


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