Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Use the Redux Toolkit library throughout the app #148

@roryokane

Description

@roryokane

Idea

Redux Toolkit is a library by the Redux team that is described within the official Redux docs:

Redux Toolkit is our official, opinionated, batteries-included toolset for efficient Redux development. It is intended to be the standard way to write Redux logic, and we strongly recommend that you use it.

Since Redux Toolkit is recommended so strongly, and it guides the user to use Redux in an idiomatic way, this React + Redux example app should use Redux Toolkit as well.

How to implement

One example of a change to use Redux Toolkit: src/store.js should replace its use of Redux’s createStore a call to Redux Toolkit’s configureStore. This will make calling composeWithDevTools in that file unnecessary, as configureStore does that automatically.

Redux Toolkit’s Advanced Tutorial provides guidance on migrating an existing Redux application to use Redux Toolkit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions