Introduction to reducers

Reducers are a general programming concept. They are not Redux-specific.

A reducer is a function that has the following characteristics:

  • Reducers are pure functions.
  • Reducers don’t create any side effects.
  • Reducer functions receive some data as arguments and perform an immutable operation on them.

Let’s understand the characteristics above one by one.

Get hands-on with 1400+ tech skills courses.