How to access user object?
In my IndexPopup there is this hook:
const [user, setUser] = useStorage<User>({
key: "user",
instance: new Storage({
area: "local"
})
})
// setUser is called below
I have file in the tabs folder called QuizMe.tsx. In this file Im trying to access the user that was set in IndexPopup. How do I do this?
0 Replies