You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will work because whenever we change any sate using useState in function component or this.setState in-class component react update rerender the component automatically.
The text was updated successfully, but these errors were encountered:
Here is the sandbox example of mine where I have achieved the same without using either useReferesh and useEffect.
https://codesandbox.io/s/affectionate-carlos-bc2qe?file=/src/App.js
It will work because whenever we change any sate using useState in function component or this.setState in-class component react update rerender the component automatically.
The text was updated successfully, but these errors were encountered: