English
ReactJS Set State Of An Array
When you try to set state of an array value then you face that behaviour: state doesn’t change. But you’re sure for change content of array like that: function User() { const [users, setUsers] = useState([ { id: 1, name: ‘Emir’ }, { id: 2, name: ‘Bugra’ } ]) function Devamı…