Learning Redux

Video description

Take your web applications to the next level by leveraging the power of Flux architecture using the Redux framework

About This Video

  • Get to know the essentials of building single page applications with React and Redux

  • Quickly and elegantly solve common problems including form submission and list pagination

  • Leverage powerful libraries to test every aspect of your client’s application

  • In Detail

    Redux completes the missing piece of the React framework, and is used at the core of React for most complex React projects. In this course, we’ll be focusing on leveraging the Redux framework to impose better engineering on React applications. Redux is an implementation of FLUX, which is a pattern for managing application state in React. Redux brings a clean and testable design to the table using a purely functional approach.

    The course begins with the basics of React development, where you will get a better understanding of how React applications are organized compared to other JavaScript applications. Then you will learn the principles of the Flux architecture before diving into one of its most popular implementations: Redux. You’ll build a simple React application and rewrite it with Redux. By the end of this section, our Redux code will be doing all the work so that our React components can be strictly presentational.

    Moving on, we’ll turn our simple client into a single page application. We’ll use react-router to allow different URLs to render different pages, and you’ll see how to break up our application state into groups of related data. We’ll focus on retrieving lists of records from the server and paginating them, starting by leveraging the Redux framework to implement our own pagination. Then we’ll replace most of the code we’ve written so far, with a third-party package that neatly solves the problem of form submission for us.

    After that, you’ll submit the form with axios, use react-router to redirect on success, and leverage toastr to display error notifications. Finally, we’ll rip out most of our code and replace it with a popular library that’s built to manage form state. At the end, you will focus on testing different libraries for our React components, and then test our asynchronous action creators and reducers.

    Product information

    • Title: Learning Redux
    • Author(s): Sam Slotsky
    • Release date: December 2016
    • Publisher(s): Packt Publishing
    • ISBN: 9781787125810