React with TypeScript
Type props, children, events, hooks and refs the way experienced React teams do, and learn which patterns to avoid.
- Level
- Advanced
- Chapters
- 4
- Exercises
- 1
- Reading time
- 16 min
What you will cover
- 1. Typing PropsThe base patterns for component props, including children.
- 2. Typing HooksWhere inference is enough and where you need to help it.
- 3. Typing Events and RefsGetting handler and DOM types right without fighting the compiler.
- 4. Generic Components and PracticesComponents that adapt to their data, and the habits worth keeping.
Up next after this one: Testing React Components