Unhandled Rejection (TypeError): Cannot destructure property 'setUser' of 'Object(…)(…)' as it is undefined

前端 未结 0 1023
难免孤独
难免孤独 2020-12-31 14:46

I\'m trying to set the user token once a user has logged in using createContext and useContext. Below are is my code:

import React, { useState, useContext, cr         


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