markdown guide

I've found that when using multiple useState hooks, it becomes easier to move to useReducer, especially when conditions mutate multiple pieces of state. I think useState still works well in your example, but once you build a more complex login (with 2FA, requiring a new user to set a new password, etc), it can get messy quickly.

Classic DEV Post from Mar 28 '19

JavaScript One-Liners That Make Me Excited

A collection of smart and zany solutions to some common, and quite uncommon, problems.

Suraj Sharma profile image
I am a full stack developer with 6 years of experience in building web apps from scratch. React, Typescript, Flask.

dev.to now has dark mode.

Go to the "misc" section of your settings and select night theme ❀️