DEV Community

Discussion on: Update boolean state right with React Hooks

Collapse
 
alexkhismatulin profile image
Alex Khismatulin

You're 100% right, there's no need to mess with refs in this case. I totally forgot about the functional state update. I'm going to add a note about that. Thank you!