DEV Community

Discussion on: useState or const: what's the difference?

Collapse
 
wolfhoundjesse profile image
Jesse M. Holmes

Right? I havent found a reason to use

const [variableOnly] = useState()

or

 const [,setterOnly] = useState()

I just thought it was a fun thinking exercise.

Collapse
 
dechamp profile image
DeChamp

It is a fun thinking exercise, because I was racking my brain to see if i was missing something. It also leads in to letting others know that, yes you may think it's an option, but it's not the proper use. So maybe someone will see this and have the questions answered. Thumbs up!