Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Redux Recipes
6 students

Redux Recipes

Develop complex and maintainable web applications using Redux
Last updated 3/2019
English
English [Auto],

What you'll learn

  • Build an application and understand the concept of state management in general
  • Get to know in detail the different recipes for applying Redux into your application
  • Build a middleware and also find out to debug with ReduxDevtools
  • Work with Deeply Nested Data by using real-world data as an example
  • Design your Redux architecture before implementation and know the best practices to structure folders/files
  • Write unit tests in Redux for different functions, actions, and reducers

Course content

6 sections41 lectures2h 59m total length
  • The Course Overview4:15

    This video gives an overview of the entire course.

  • Understanding Redux Through a Non-Technical Example2:07

    Understanding the Redux terms such as store, state, action, reducers, and so on.

       •  Start with a drawing explaining a non-technical example of Redux usage

       •  Fallback to Redux and rename everything to match the Redux echo system

       •  Revise the whole process again with Redux terms

  • Adding Redux to Application1:27

    Including Redux as a file referenced after download into html file and make sure that everything is wired up with the browser for previewing.

       •  Get into the Redux website and preview the different ways of downloading redux

       •  Pick the package way and download the redux.min.js file

       •  Include the file into the html file and wire it up

  • First Redux Application5:06

    Creating the first Redux application by creating store using the createStore function and create the reducer and first action to be dispatched to the store.

       •  Create a reducer function to be used first without redux

       •  Create Redux store using createStore function and pass reducer function to it

       •  Create and dispatch action and handle it in the reducer function

  • Restore State from Store1:12

    Learning how to restore the whole state from the store using getState function in the store instance.

       •  Using the store.getState it returns the whole state

       •  Display the state using console.log instead of console login the action

  • Firing Different Actions2:46

    Creating other actions and dispatch them the same way like the first action and add payloads for changes.

       •  Create new action with action types and adding the proper payload

       •  Dispatch the actions using store.dispatch function

  • Handling Different Actions in Reducers3:30

    Handling the created action in the previous video in the reducer function using if/else and make the required changes.

       •  Creating extra if/else statements to handle different action types

       •  State make some changes in the state based on the sent action and payload

       •  Returning a new state with the change without mutation

  • Subscribing to Redux State1:38

    Registering to get changes regularly from store once the state has any changes using store.subscribe.

       •  Delete all the console.log commands for the getState function

       •  Create only once a subscribe call before any dispatch actions

       •  Change the content of the subscribe to have getState inside it

  • Understanding createStore() and reducers4:57

    Making some changes in the example by adding a default state as a second parameter in the createStore function.

       •  Move the whole code from the html file script tag into a separate file

       •  Change the implementation of reducer to use switch instead of if/else

       •  Make some more changes into the reducers by accepting the default state from store instead of default param

  • Splice Reducers and Combine Them5:20

    Splicing the reducer function into separate reducers each one can manage only a small part of the state and we can combine them again into a root reducer and pass it to the createStore function.

       •  Add a new part in the project for users into the state, action, and reducer to be tested

       •  Make separate reducers for orders and another for users

       •  Combine both reducers into one using combineReducers function and pass it to createStore function

  • Summary1:20

    Making a recap for everything we did during this section about each part concisely.

Requirements

  • Basic knowledge of JavaScript is required for this course.

Description

State management is absolutely critical in providing users with a well-crafted experience with minimal bugs. Redux provides a solid, stable, and mature solution to managing state in your React application.

In this course, you'll explore advanced state management techniques, router integration, and other common problems that you might encounter while developing your applications. The recipe-based approach allows you to quickly identify your problem and find a solution to it. This course also consists of various recipes that will help you to understand different test-case scenarios created in Redux.

Once you are well-acquainted with Redux, the course will explicitly show you how they work in developing a consistent application with React.

About The Author

Medhat Dawoud is a Front-end Engineer with over a decade of experience in web applications. He has successfully delivered a lot of web applications implemented in different programming languages and in different industries including fintech. Early in his career, he became a fully dedicated Front-end Engineer. He also has experience with Node.js, as he loves everything that JavaScript touches.

Throughout his career, he worked in almost everything that counts as a front-end technology including JQuery, Backbone.js, Angular.js, React, Vue, and Angular 2+ since it was in RC4. He is also experienced with the stack behind each framework including ES6+, TypeScript, Babeljs, Redux, RxJS, and other UI technologies including HTML5, CSS3+, Sass, and Bootstrap 4.

He has a lot of experience of teaching technology to people through public speaking, screencasting, crash courses, and sometimes blog posts. He is very active online, making technical tutorials on his channel on YouTube, Twitter, and LinkedIn.

Who this course is for:

  • The video is for JavaScript developers who want to create high performing web applications with Redux.