TypeScript in React - Full Tutorial
Struggling to type React components correctly? This TypeScript React tutorial walks you done utilizing TypeScript successful existent React projects, from typing useState to building reusable typed components, pinch hands-on challenges throughout. ✏️ Study this people interactively connected Scrimba: https://scrimba.com/learn-typescript-c03c?via=scrimbafcc Code is disposable connected the Scrimba people page for each lesson. TypeScript makes React codification safer and much predictable. In this module, you'll study really to type useState, constituent props, JSX elements, and usability props done applicable lessons. Perfect for developers who cognize React basics and want to adhd TypeScript to their workflow. This isn't conscionable a watch-and-learn tutorial. You'll complete existent coding challenges, including building the AriaLiveStatus and WordLetters components from scratch. Timestamps - 00:00 Welcome to TypeScript and React! - 01:51 Setting up the React Project - 05:02 TS Refresher - Basic & Custom Types - 08:31 TS Refresher - Functions - 11:50 TS Refresher - A caller getRandomIndex() usability - 14:07 Typing useState() - 17:36 Typing Derived Values and Arrow Functions - 19:48 Typing App.tsx functions - 23:10 The New Setup - 25:12 Typing React Components - 27:48 JSX Element aliases null - 29:24 Typing Component Props - 32:46 Custom Component Prop Types - 34:34 The AriaLiveStatus Component Challenge - 36:53 Component Props and Imported Types - 39:15 Element wrong an Element - 42:14 The WordLetters Component Challenge - 44:49 Typing Function Props - 47:33 The Final Challenge - 50:23 Congrats! ❤️ Support for this transmission comes from our friends astatine Scrimba – the coding level that's reinvented interactive learning: https://scrimba.com/freecodecamp 🎉 Thanks to our Champion and Sponsor supporters: 👾 @omerhattapoglu1158 👾 @goddardtan 👾 @akihayashi6629 👾 @kikilogsin 👾 @anthonycampbell2148 👾 @tobymiller7790 👾 @rajibdassharma497 👾 @CloudVirtualizationEnthusiast 👾 @adilsoncarlosvianacarlos 👾 @martinmacchia1564 👾 @ulisesmoralez4160 👾 @_Oscar_ 👾 @jedi-or-sith2728 👾 @justinhual1290 -- Learn to codification for free and get a developer job: https://www.freecodecamp.org Read hundreds of articles connected programming: https://freecodecamp.org/news
English (US) ·
Indonesian (ID) ·