Javascript – React State not saving at all
In the auth and login function, the data returned is correct, but when I save it to state, it just disappears export const useAuth = () => { const [user, setUser] = useState(null); return { user, async login({mail, password, stayLoggedIn})…