Why Your React List of Items is Not Changing
Over the years React has matured well in making sure the development process is predictible, especially for newer programmers, but every once in a while React developers come across a process in the framework that requires a deeper level understanding. Keys in react lists are one of those processes.
function ExampleComponent() { const [list, setList] = React.useState([ { name: 'a' }, { name: 'b' }, { name: 'c' }, ]) return ( <ul> {list.