Slides / VideoIntermediate
Functional Updates with Previous State
Learn why passing a function to your state setter is the safe way to update state that depends on its previous value.
1 / 6
Learn why passing a function to your state setter is the safe way to update state that depends on its previous value.