Timeline for answer to Correct modification of state arrays in React.js by Ian Smith
Current License: CC BY-SA 4.0
Post Revisions
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 16, 2024 at 17:51 | history | edited | rozsazoltan | CC BY-SA 4.0 |
improved formatting
|
| Feb 7, 2021 at 10:07 | comment | added | Ian Smith | @Ken what kind of array are you working with? Your array object should have a built in remove function built in. You'd trigger the removal and then update the state. | |
| Feb 7, 2021 at 3:43 | comment | added | Ken | What if instead of adding, I wanted to remove an element from the array? | |
| May 31, 2020 at 20:29 | history | answered | Ian Smith | CC BY-SA 4.0 |