B4Coder
0%
LessonAbout 8 min

Chapter 4 · Lesson 5 of 5

05. Objects and arrays in state

Never change an object or array in state: make a new one with ... (spread), and React sees the change and redraws.

Opening the lesson…