React useState With TypeScript (Typed useState TypeScript Tutorial)

preview_player
Показать описание

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.

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!
Рекомендации по теме
Комментарии
Автор

How do you type a case where you're calling setUserInput((prevState) => ({... etc}))?

isaacpriestley
visit shbcf.ru