Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Reduce Redux Boilerplate with Redux-Actions

via egghead.io

Overview

Redux is a powerful way to manage application state, but that power can come with a lot of code. A single update can sometimes require changes across many files and the code required to define action creators and to handle those actions in your reducer can start to get pretty repetitive.
The redux-actions library offers a small but powerful API to help cut down on some of the boilerplate that is typical of an application that uses Redux to handle state management.

Syllabus

  • Introducing Reduce Redux Boilerplate with Redux-Actions
  • Add redux-actions as a Dependency of a React and Redux App
  • Refactor a Redux Action Creator using the createAction function from redux-actions
  • Modify a Redux Action’s Payload upon Creation with redux-actions
  • Create Multiple Redux Actions with an Action Map in redux-actions
  • Create a Reducer Function for a Specific Redux Action using redux-actions
  • Combine Individual Reducer Functions into a Single Reducer with reduce-reducers
  • Handle Multiple Actions using a Single Function with combineActions in redux-actions
  • Create a Reducer Function for Multiple Redux Actions using redux-actions
  • Handle Error Conditions in a Reducer using redux-actions
  • Add Meta Data to a Redux Action with redux-actions

Taught by

Andy Van Slaars

Reviews

Start your review of Reduce Redux Boilerplate with Redux-Actions

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.