B4Coder
0%
LessonAbout 6 min

Chapter 4 · Lesson 4 of 5

04. Updating from the value before

Give the set function a function, and React passes it the latest value: the safe way to update from the value before.

Opening the lesson…