Рет қаралды 3,020
Enjoying my videos? Sign up for more content here: www.coopercodes.com/
📩 Join codeLetter by Cooper Codes, the 3 minute tech newsletter: thecodeletter.com
In this video I go over the basics of useState with React and TypeScript. I explain the goal of typed useStates and then I go into creating a project where we handle user input within a typed useState. This video is great for beginners and should give you a great understanding of React and also how types work with the React useState hook.
Final Code: github.com/coopercodes/TypedU...
Business inquiry? Email thecoopercodes@gmail.com
0:00 typed useState introduction
2:09 Create React TypeScript app
3:32 Create typed useState
5:26 Handle user inputs
7:00 Set typed state
9:03 Final project / TypeScript discussion
10:32 Thanks for watching!