Overview
This training course teaches developers the skills they need to immediately use Redux in their React applications.
Objectives
At the end of React with Redux training course, participants will be able to
Prerequisites
Attendees must have prior React development experience.
Course Outline
- What is State?
- When do you need a State Management library?
- Alternatives to Redux
- Using Context for Shared State
- Server State: React Query, SWR, or GraphQL client
- What is Redux?
- 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
- Redux with React in Function Components
- useSelector and useDispatch Hooks
- Provider
- Example
- Redux with React in Class Components
- Higher-Order Components
- The connect function
- Writing mapState functions
- Writing mapDispatch Functions
- Overview
- Async Actions (Thunks)
- Installation
- Your First Thunk
- Full CRUD Example
- 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
- What causes a component to render?
- Wasted Renders
- Memoization
- React.memo
- Pure Components