Created a simple login form using React, Typescript and React Material UI featuring useReducer
and useEffect
hooks.
A detailed article on How to build a React Login Form with Typescript and React hooks
Created a simple login form using React, Typescript and React Material UI featuring useReducer
and useEffect
hooks.
A detailed article on How to build a React Login Form with Typescript and React hooks
For further actions, you may consider blocking this person and/or reporting abuse
Ever wondered what it takes to build a web3 startup from scratch? In the Stellar Dev Diaries series, we follow the journey of a team of developers building on the Stellar Network as they go from hackathon win to getting funded and launching on mainnet.
Top comments (3)
I've found that when using multiple
useState
hooks, it becomes easier to move touseReducer
, especially when conditions mutate multiple pieces of state. I thinkuseState
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.you can also refactor your from with concent, it is worth doing.
here is 2 demos:
js ver: codesandbox.io/s/concent-guide-xvcej
ts ver: codesandbox.io/s/concent-guide-ts-...
Sure, I will look into it.
Thanks