Visão Geral
Este curso ensina como usar React JS com TypeScript para criar aplicações mais seguras, escaláveis e robustas. Você aprende desde os fundamentos do TypeScript até a construção de componentes tipados, garantindo mais qualidade e produtividade no desenvolvimento.
Conteúdo Programatico
Module 1: TypeScript for React Developers
- Why TypeScript matters
- Basic types recap
- Type inference
- Interfaces vs types
Module 2: Setting Up React with TypeScript
- Creating a project with TypeScript template
- Understanding tsconfig
- File structure in TypeScript projects
- Common compiler options
Module 3: Typing Components
- Typing functional components
- Props with interfaces and type aliases
- Optional and default props
- Reusable prop types
Module 4: Typing Hooks
- Typing useState
- Typing useEffect dependencies
- Typing useRef for DOM and values
- Custom hooks with generics
Module 5: Event and Form Typing
- Event types in React
- Typing inputs and form handlers
- Preventing common event mistakes
- Best practices for form logic
Module 6: Working with Arrays, Lists and Maps
- Typing arrays of objects
- Rendering typed lists
- Keys and UI patterns
- Generic list structures
Module 7: API Integration with TypeScript
- Typing fetch responses
- Creating API interfaces
- Handling loading and error states safely
- Ensuring type-safe data flow
Module 8: Context API with TypeScript
- Typing context values
- Creating Provider and custom hooks
- Safe global state patterns
- Combining context + reducers
Module 9: Advanced Typing Patterns
- Generics in React components
- Utility types (Partial, Pick, Omit, Record)
- Discriminated unions
- Composition patterns with TypeScript
Module 10: Practical Project – Typed React App
- Planning a TypeScript-friendly architecture
- Building components with strong typing
- Managing state and API calls
- Reviewing, refactoring and deploying