codeStyle
codeStyle
I hate that the convention for naming React.useState variables is [color, setColor], rather than [color, colorSet]. After I declare βcolorβ, I want to copy/paste that variable and append βSetβ, rather than copy the variable then writing βsetβ then pasting then navigating to the 4th character then flipping the case.
Granted there could be some ambiguity if there was a variable containing a unique collection (aka set) but that is far less common than declaring a useState variable. Iβd even settle for appending βSETβ to quell the confusion.