DEV Community

Discussion on: React Cheat sheet (Updated June 2021)

Collapse
 
axmachina profile image
AxMachina

Your version is accurate. The point of using functional form is to ensure you get the most current state value and not the stale one (as in the original version).