Untitled

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

* Note: if you ever need the old value of state

* to help you determine the new value of state,


* you should pass a callback function to your
* state setter function instead of using
* state directly. This callback function will
* receive the old value of state as its parameter,
* which you can then use to determine your new
* value of state.

useEffect() hook apply only for the first render

status 401 for unauthorized (token doesn't exist or expire)

You might also like