React Js Tutorials, Usestate, React Hook, Reactjs, Javascript Arrays.
"roshan123@gmail.com" }] const [members, setMembers] = useState(ALL_MEMBERS); const updateName = (idx, newName) => { setMembers(members.map((m, k) => { if(k !== idx)return m else return {...m, name : newName} })) } 6. Updating item in an array by key updateName — updates object property name where