Introduction to Redux for React using JavaScript/ECMAScript

Redux is a predictable state container for React. As React applications become more complex, developers often find a need for more structure around the data or state they are managing in their...

Read More
Course Code ACCEL-REDUX-REACT
Duration 2 days
Available Formats Classroom
5947 Reviews star_rate star_rate star_rate star_rate star_half

“Eric knows his stuff and can react to any situation - he's very nimble, he can scale needs of everyone while satisfying the entire class... it's quite impressive.”

Course Image

Redux is a predictable state container for React. As React applications become more complex, developers often find a need for more structure around the data or state they are managing in their application. The Redux JavaScript library provides an elegant solution for this need. This Introduction to Redux for React using JavaScript/ECMAScript training teaches developers the skills they need to immediately use Redux in their React applications.

Skills Gained

All students will:

  • Understand what Redux is and the problems it addresses
  • Connect React and Redux together using the React Redux library
  • Make async HTTP calls to an API using Redux Thunk
  • Learn to unit test Redux Actions, Thunks, Reducers, and HTTP calls

Prerequisites

All attendees must be experienced developers with an understanding of object-oriented programming and some familiarity with JavaScript. If your group doesn’t yet have this experience, we could readily add one or two days to the beginning of your course to appropriately prepare them.

Course Details

Software Requirements

  • Google Chrome and/or Firefox with Firebug
  • Other modern browsers as desired
  • IDE/development environment of your choice
  • Other free software and lab files that Accelebrate would specify, including Node.js

Redux Training Outline

Introduction

Redux

  • What is Redux?
  • What is State?
  • 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

Using Redux with React (React Redux Library

  • The connect function
  • Writing mapState functions
  • Writing mapDispatch Functions
  • Provider
  • Inside React Redux
  • Example

Asynchronous Actions (Redux Thunk)

  • Overview
  • Async Actions (Thunks)
  • Installation
  • Your First Thunk
  • Full CRUD Example

Putting It All Together (React & Redux & Thunk)

Unit Testing

  • Tools (Jest, Enzyme, JSDOM)
  • Syntax
  • Testing Vanilla JavaScript with Jest
  • Mocking
  • Mocking Modules
  • Mocking Functions
  • Debugging Tests
  • Testing Redux Actions & Thunks, Reducers, HTTP calls

Conclusion

Contact Us 1-800-803-3948
Contact Us
FAQ Get immediate answers to our most frequently asked qestions. View FAQs arrow_forward