Visão Geral
Este Curso React Advanced, leva os desenvolvedores experientes do React ao próximo nível, ensinando-lhes os recursos mais sofisticados que o React tem a oferecer.
Neste Curso React Advanced, prático, os participantes aprendem os recursos avançados do React, incluindo ganchos personalizados, useReducer, eventos, subrotas e muito mais, com um instrutor experiente para orientá-lo.
Objetivo
Após realizar este Curso React Advanced, você será capaz de:
- Escreva componentes React que otimizam o DOM virtual
- Aproveite ao máximo o TypeScript com aplicativos React para segurança de tipo
- Use tipos de prop em vez de TypeScript
- Descreva todos os ganchos integrados
- Escreva seus próprios ganchos personalizados
- Acelere aplicativos com useMemo e useCallbak
- Resolva estado complexo com useReducer
- Ignorar perfuração de suporte com useContext
- Responda a todos os eventos - mesmo aqueles que o React não consegue controlar
- Crie rotas de navegação com o roteador mais recente
- Ler parâmetros de rota e strings de consulta
- Construa os hiperlinks mais rápidos
- Sub-rotas do autor
- Otimize o carregamento com subrotas
Publico Alvo
- Desenvolvedores experientes em React que desejam levar suas habilidades em React para o próximo nível.
Materiais
Inglês + Exercícios + Lab Pratico
Conteúdo Programatico
Introduction
Understand the virtual DOM
- Why the vDOM?
- Reconciliation
- How it compares
- How to optimize your code
- The Ivy engine
- How hooks fit in
- Why one-way data flow
- Transpiling, bundling, minifying with webpack
TypeScript in React
- JavaScript vs Java (et al.)
- What TypeScript really does
- TS does not provide strong typing
- Interfaces vs types
- Embracing functional vs OOP
- Generics in React
- Discriminated unions
- CSS Properties
- Event object
- 3rd party libraries with no TS support
Proptypes
- Built-in prop type checking
- Making props optional
- Setting prop types
Speeding up React with lazy loading
- The best strategy
- The lazy method
- The Suspense component
- Fallbacks
- Code splitting
- Error boundaries
Hooks overview
- All built-in hooks
- When to use the obscure ones
useContext for code clarity
- Why prop drilling is evil
- Create context
- Reading context
- Updating context
Deep dive into useEffect
- How useEffect works
- Simulating lifecycle events
- Exhausting dependencies
- useEffect belongs with its own render
Speeding your app with useMemo and useCallback
- What is the difference?
- Optimizing components with useCallback
- Optimizing with useMemo
- Why not just useMemo everything?
Fixing complex state - useReducer
- What is useReducer?
- Woot! No need for Redux, right?
- How to optimize useReducer
- When not to useReducer
How to write a custom hook
- First - why?
- The rules
- How to write the code
- How to best use a custom hook
Advanced event handling
- React's synthetic events
- How to handle events that React refuses to
- Low-level power of events
- The need to de-register events
- Let's create an infinite scroll component
Routing
- Overview of the newest React Router
- Creating baseline routes
Route parameters & query strings
- What's the difference?
- REST and parameters
- Creating route parameters
- Reading route parameters
- Reading query strings
Efficient hyperlinks
- Why not use <a>?
- How to do it the modern way
- Relative vs absolute paths
Subroutes
- Routes within routes
- How to create relative routes
- How this simplifies your complex navigation
11y (time permitting)
- The case for a11y
- Specs, laws, and requirements
- React-specific handling
18n (time-permitting)
- Globalization vs. localization
- Detecting locale
- How to do it in React
TENHO INTERESSE