You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**A simple set of tools to make using Redux easier**
9
+
**The official, opinionated, batteries-included toolset for efficient Redux development**
10
10
11
-
`npm install redux-starter-kit`
11
+
`npm install @reduxjs/toolkit`
12
12
13
-
(Special thanks to Github user @shotak for donating to the package name.)
13
+
(Formerly known as "Redux Starter Kit")
14
14
15
15
### Purpose
16
16
17
-
The Redux Starter Kit package is intended to help address three common concerns about Redux:
17
+
The **Redux Toolkit**package is intended to be the standard way to write Redux logic. It was originally created to help address three common concerns about Redux:
18
18
19
19
- "Configuring a Redux store is too complicated"
20
20
- "I have to add a lot of packages to get Redux to do anything useful"
21
21
- "Redux requires too much boilerplate code"
22
22
23
23
We can't solve every use case, but in the spirit of [`create-react-app`](https://github.com/facebook/create-react-app) and [`apollo-boost`](https://dev-blog.apollodata.com/zero-config-graphql-state-management-27b1f1b3c2c3), 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.
24
24
25
-
This package is _not_ intended to solve every possible concern about Redux, and is deliberately limited in scope. It does _not_ address concepts like "reusable encapsulated Redux modules", data fetching, folder or file structures, managing entity relationships in the store, and so on.
25
+
This package is _not_ intended to solve every possible use case for Redux, and is deliberately limited in scope. It does _not_ address concepts like "reusable encapsulated Redux modules", data fetching, folder or file structures, managing entity relationships in the store, and so on.
26
26
27
27
### What's Included
28
28
29
-
Redux Starter Kit includes:
29
+
Redux Toolkit includes:
30
30
31
31
- A `configureStore()` function with simplified configuration options. It can automatically combine your slice reducers, adds whatever Redux middleware you supply, includes `redux-thunk` by default, and enables use of the Redux DevTools Extension.
32
32
- A `createReducer()` utility that lets you supply a lookup table of action types to case reducer functions, rather than writing switch statements. In addition, it automatically uses the [`immer` library](https://github.com/mweststrate/immer) to let you write simpler immutable updates with normal mutative code, like `state.todos[3].completed = true`.
@@ -36,6 +36,4 @@ Redux Starter Kit includes:
36
36
37
37
## Documentation
38
38
39
-
The Redux Starter Kit docs are now published at **https://redux-starter-kit.js.org**.
40
-
41
-
We're currently expanding and rewriting our docs content - check back soon for more updates!
39
+
The Redux Toolkit docs are available at **https://redux-toolkit.js.org**.
0 commit comments