Value cannot change when i used unstated-next lib in react- native

前端 未结 0 1754
孤街浪徒
孤街浪徒 2021-01-19 08:16

Here is my code

const useHook = () => {
let [token, setToken] = React.useState(\'\');

let changeToken = (tk: any) => {setToken(tk)}
return {
  
  token         


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