Re-Render
Elements
Presentation
Container (Engine)
const [city, setCity] = useState('')
useState(Initial Value) = Array[Variable, Updating Function]
State change (Mutation)
State change (Mutation)
useEffect(fun,[arr])
useEffect(()=>{
//Code executed client side on mount
return(()=> {
//Code executed on unmount
})
},[Dependecy array])
Subscribe for more!
Shehata@msmo.io
github.com/ms-mousa