score:0

you can save the login state in localstorage or context after a successful login.

useeffect(() => {

   // get authentication here

   api.call('/auth')

     .then(data => {

       localstorage.setitem("authdata", json.stringify(data));

     

     })

    .catch(err => {

      seterr(err)

    })


 })

you can follow along with this guide and login in the same way.

thank you.


Related Query

More Query from same tag