
Redux helps you manage application state in medium to large single-page apps with complex data flows, keeping independent views in sync and enabling predictable testing and debugging.
Explore the three building blocks of Redux: the store, actions representing events, and reducers, and how they manage a single application state. Reducers return new state without mutating the store.
Explain pure functions that always return the same output for a given input and avoid side effects, and show reducers returning new state without mutating original state and using actions.
Learn to install redux in an angular app, compare redux implementations, create a basic store with a root reducer, and configure dependency injection to wire redux into the app.
Learn to manage a counter with Redux in Angular by dispatching actions, updating reducers in the store, and initializing state, while replacing magic strings with constants.
subscribe to the store to read state and expose it via the select decorator and async pipe, enabling a counter and nested properties while avoiding memory leaks.
explains two ways to copy the state in redux reducers without mutation: Object.assign and a typesafe alternative, highlighting immutability and unit tests to prevent bugs.
Learn to prevent accidental mutations by converting Redux store state to an immutable map and updating reducers with get and set operations.
Implement Redux-based state management in a to-do app with a list and dashboard, linking add, toggle, remove actions across components and downloading the exercise source code and tips.
Learn to use Redux DevTools for Angular, discovering time travel debugging, action history, and a visual representation of application state, with save and reload of persistent state.
Learn how to bring server data into a Redux store in Angular by dispatching actions, managing loading state, and comparing optimistic and pessimistic updates while avoiding action creators.
Refactor fat switch blocks in Redux style reducers by extracting logic into internal functions, and explore class-based approaches to reduce repetitive state and action handling in the root reducer.
Break down complex domains by modularizing Redux state into tasking and messaging modules, moving actions, and using combined reducers for a scalable, maintainable architecture.
If you're building a complex Angular app with complex data flows, you may want to consider using Redux to better manage the state of your app.
Redux is a lightweight and simplified implementation of the Flux architecture that was originally introduced by Facebook. It provides a clean and elegant solution to maintain the state of your applications in a predictable way.
It also provides a number of other benefits:
- It decouples your application from a presentation framework like Angular
- It allows you to postpone decisions about external frameworks (clean architecture)
- It makes it easier to unit test your application without mocks and spies
- You get access to awesome tools as part of your development (Redux Dev Tools)
- It makes it easier to implement undo/redo feature in your applications
In this course, Mosh, author of several best selling courses on Udemy, takes you from the ground and teaches you what Redux is, when to use it and why, and how to implement it properly.
You'll learn about:
If you've taken any of Mosh's courses before, you know what you get. High quality video and audio, outstanding delivery with no mocking around.
30-DAY FULL MONEY-BACK GUARANTEE
This course comes with a 30-day full money-back guarantee. Take the course, watch every lecture and if you feel like you haven't gained the confidence to write automated tests for your Angular apps, ask for a full refund within 30 days. All your money back, no questions asked.
ABOUT YOUR INSTRUCTOR
Mosh (Moshfegh) Hamedani is a software engineer with 15 years of professional experience. He is the author of several best-selling courses on Udemy and Pluralsight with over 74,000 students in 172 countries. His students describe him as a passionate, pragmatic and motivational instructor.
So, do you want to learn Redux in a clear, concise and pragmatic way?
Enroll in the course now and get started!