There are many ways to structure Redux code, so which one should we go with?

Before we jump into answering that question, let’s come up with an imaginary application that we’ll use to explore different code structures.

Imagine a note-taking application that has four functions:

  1. Login
  2. Notes can be created
  3. Notes can be listed
  4. Note categories can be listed

What are the parts of our Redux application? The smallest parts are actions, reducers and side effects. Let’s call these parts units.

Units in our application:- login actions, reducer, side effects- add note actions, reducer, side effects- notes…

Marcin Gardas

Passionate about frontend ✌️

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store