Learning Redux [Video]

More Information
Learn
  • Boost your productivity with the latest client technologies
  • Build rich client applications with quality engineering principles
  • Understand Flux and get to know the ins and outs of Redux
  • Solve problems using nothing but reducers, actions, and components
  • Save time and code by discovering the libraries that solve the most common problems
  • Connect the boundary of your client application with well-defined server communication
  • Find out how to test asynchronous action creators and reducers
  • Develop confidence in your code quality and your ability to refactor when all your code is thoroughly tested
About

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.

Style and Approach

This is an in-depth course where we’ll be focusing on leveraging the Redux framework to impose better engineering on React applications. Users are expected to have a working knowledge of node.js, webpack, and at least one data binding framework, ideally React. It's also helpful to have a basic understanding of one-way data flow, which is the key principle behind the FLUX architecture

Features
  • 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
Course Length 2 hours 2 minutes
ISBN 9781787125810
Date Of Publication 29 Dec 2016

Authors

Sam Slotsky

Sam Slotsky is a software engineer and saxophonist originating from Sioux City, IA. He attended the University of Iowa for Computer Science and Music and is currently employed by Ackmann & Dickenson, Inc. of Minneapolis, specializing in back-end web applications, databases, and JavaScript. Additionally, Sam has authored and contributed to open source packages for use with the React, Redux, Knockout, and Meteor framework. Cooking and playing chess are his favorite pastime activities.Husband and father of three, he writes software programs during the day, cooks in the evening, listens to jazz obsessively, and has a bit of a thing for cycling.