Is it possible to export a state value from inside a hook?

后端 未结 0 561
北海茫月
北海茫月 2020-12-24 09:46

I have the following hook:

const useAuth = () => {
  const [auth, setAuth] = useState({
    isAuthenticated: false,
    accountType: \'anonymous\',
    use         


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