The official, opinionated, batteries-included toolset for efficient Redux development. The Redux Toolkit package is intended to be the standard way to write Redux logic. It was originally created to help address main common concerns about Redux. We can't solve every use case, but in the spirit of create-react-app and apollo-boost, we can try to provide some tools that abstract over the setup process and handle the most common use cases, as well as include some useful utilities that will let the user simplify their application code. Because of that, this package is deliberately limited in scope. It does not address concepts like "reusable encapsulated Redux modules", folder or file structures, managing entity relationships in the store, and so on. Redux Toolkit also includes a powerful data fetching and caching capability that we've dubbed "RTK Query". It's included in the package as a separate set of entry points.
Features
- Redux Toolkit is available as a package on NPM for use with a module bundler or in a Node application
- It is also available as a precompiled UMD package that defines a window.RTK global variable
- The UMD package can be used as a <script> tag directly
- Allows you to define a set of endpoints describe how to retrieve data from a series of endpoints
- RTK Query is provided as an optional addon within the @reduxjs/toolkit package
- RTK Query is built on top of the Redux Toolkit core for its implementation