Skip to main content

API Reference

This section documents the original Redux core API. The Redux core is small - it defines a set of contracts for you to implement (such as reducers) and provides a few helper functions to tie these contracts together.

Redux Toolkit

This page describes the low-level Redux mechanism that Redux Toolkit builds on. In an application, you would normally use Redux Toolkit's configureStore and createSlice rather than writing this code yourself. It's still worth understanding what they do underneath.

To learn how to write Redux apps today, see the Redux Essentials tutorial. To update existing code, see Migrating to Modern Redux.

Redux Toolkit re-exports all of the APIs included in the redux package, so you don't need to install redux separately. The original createStore method is deprecated in favor of configureStore, but will continue to work indefinitely.

For the APIs you'll use day to day, see the Redux Toolkit API docs and the React-Redux API docs.

Top-Level Exports

Store API