- State State is a short term memory for react How to write a variable in react
// USEeffect runs a code on a condition
useEffect(() => { // this code will run once component loads and not again and the changingVariable changes }), [changingVariable]);