React with TypeScript
React with TypeScript
for Tridhya Tech
Prashant Rawal
Tridhya Tech
Table of Contents
Introduction
Introduction
About Workshop and Me
Why
PropTypes
nameBadge
Migrating From Proptypes
Refactoring Prototypes
Solutions
Commonly Used Props
Children
Type the Children
Type the Children Solution
Built In Types
Hooks
useState
useState Exercise
useState Solution
Setting State without Default Value
State and Event Exercise
State and Event Solution
Passing setState and Reusing State
Passing setState and Resuing State Solution
Unions in Typescript
Reducers
Working with Reducers
Passing Dispatch as a Prop
Typing Action and Reducers
Typing Action and Reducers Solution
Context Api
The Context Api
Context Api Exercise
Context Api Solution