...

/

Structuring Reducer Logic for Features

Structuring Reducer Logic for Features

We'll cover the following...

As mentioned previously, we’re using a “feature-first” folder structure. There’s tradeoffs with both “file-type-first” and “feature-first” approaches.

With “file-type-first”, you know where to look for a certain type of code, and it’s really easy to pull together all the slice reducers into a root reducer file. However, each feature gets split across several folders, and if multiple features need to interact with a specific slice of state, the files or folders for that slice of reducer logic ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy