React Js Tutorials, Usestate, React Hook, Reactjs, Javascript Arrays.
incase of arrays and objects. We cannot reassign items inside an array, for example we cannot do arr[0] = 'new value'. Also avoid using array methods such as push() and pop() when updating array in state variable. 1. Updating simple variable updateName — updates name variable import { useState }