DEV Community

Discussion on: Solution for problem with useState and eventHandlers

Collapse
 
subbiahc profile image
subbiah chandru

@deltd3v

same like a useState, but you get a 3rd parameter, which exposes the current value that could be used inside eventhandlers.