Lecture # 15 MERN Stack Project Work on Register & Logout Urdu/Hindi #project #node #reactjs #code
github Repo:- https://github.com/miansaqib71/E-Commerce-Dashborad
LocalStorage Learning:- https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
useEffect: https://www.w3schools.com/react/react_useeffect.asp
github #use #learning #code #developer #mongodb #install #setup #2023 #2k23 #mongodb #collection #configuraciĆ³n #users #api #nodejs #cors #fetch #api #localstorage #useeffect #onclick #function
Why useEffect is called?
Image result for what is useeffect?
When you call useEffect in your component, this is effectively queuing or scheduling an effect to maybe run, after the render is done. After rendering finishes, useEffect will check the list of dependency values against the values from the last render, and will call your effect function if any one of them has changed.
What does this mean in onclick?
The onClick attribute is an event handler that instructs the browser to run a script when the visitor clicks a button.