FlashcardIntermediate

Functional Updates

Use the updater function form of setState when new state depends on previous state.

Question

When should you use the functional form of a state setter?

Click to reveal answer