Visão Geral
Curso React and Redux Advanced Overview
Objetivo
Após realizar este Curso React and Redux Advanced Overview, você e capaz de:
- Use ganchos personalizados
- Compreender a gestão do estado, incluindo quando é necessário e as várias alternativas
- Utilize o Redux para gerenciar o estado do aplicativo
- Use React e Redux juntos
- Implemente as melhores práticas de React e Redux
- Escreva testes de unidade para React usando Jest e React Testing Library
Publico Alvo
- Todos os participantes devem ter feito o curso de Introdução ao React e Redux ou ter a experiência equivalente
Requisitos de software:
- Google Chrome e/ou Firefox
- Outros navegadores modernos conforme desejado
- IDE/ambiente de desenvolvimento de sua escolha
Materiais
Português + Exercícios + Lab Pratico
Conteúdo Programatico
Introduction
- Custom Hooks
- Background
- Definition
- Reuse of stateful logic
Context
- When to use Context
- useContext Hook
State Management
- What is State?
- When do you need Redux?
- Alternatives to Redux
- Using Context for Shared State
- Server State: React Query, SWR, or GraphQL client
Redux
- What is Redux?
- What is State?
- Benefits Checklist
- Principles of Redux
- Core Concepts (Store, State, Reducers, Actions, Action Creators)
- Complementary Packages
- When do you need Redux?
- Basic Redux Example (includes time traveling)
- Gotchas/Tips
Using Redux with React (React Redux Library)
- The connect function
- Writing mapState functions
- Writing mapDispatch Functions
- Provider
- Inside React Redux
- Example
Asynchronous Actions (Redux Thunk)
- Overview
- Async Actions (Thunks)
- Installation
- Your First Thunk
- Full CRUD Example
Putting It All Together (React & Redux & Thunk)
- Testing
- Tools (Jest, React Testing Library or Enzyme)
- Syntax
- Testing Vanilla JavaScript with Jest
- Mocking
- Mocking Modules
- Mocking Functions
- Debugging Tests
- Component Tests with React Testing Library
- Component Tests with Enzyme
- Shallow
- Full
- Snapshot
- Testing Redux Actions & Thunks, Reducers, HTTP
Optional Topics/FAQ (if time permits)
- Styling
- Using Classes
- Using Styles
- CSS in JS Overview
Performance
- What causes a component to render?
- Wasted Renders
- Memoization
- React.memo
- Pure Components
Advanced Components
- Higher-Order Components
- Render Props
TENHO INTERESSE