File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ hide_title: true
7
7
8
8
import LiteYouTubeEmbed from 'react-lite-youtube-embed';
9
9
import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css'
10
+ import Tabs from '@theme/Tabs ';
11
+ import TabItem from '@theme/TabItem ';
10
12
11
13
  ;
12
14
@@ -46,18 +48,35 @@ npx create-react-app my-app --template redux-typescript
46
48
47
49
Redux Toolkit is available as a package on NPM for use with a module bundler or in a Node application:
48
50
51
+ <Tabs >
52
+ <TabItem value =" npm " label =" npm " default >
53
+
49
54
``` bash
50
- # NPM
51
55
npm install @reduxjs/toolkit
52
56
```
53
57
54
- or
58
+ If you need React bindings:
59
+
60
+ ``` bash
61
+ npm install react-redux
62
+ ```
63
+
64
+ </TabItem >
65
+ <TabItem value =" yarn " label =" yarn " default >
55
66
56
67
``` bash
57
- # Yarn
58
68
yarn add @reduxjs/toolkit
59
69
```
60
70
71
+ If you need React bindings:
72
+
73
+ ``` bash
74
+ yarn add react-redux
75
+ ```
76
+
77
+ </TabItem >
78
+ </Tabs >
79
+
61
80
It is also available as a precompiled UMD package that defines a ` window.RTK ` global variable.
62
81
The UMD package can be used as a [ ` <script> ` tag] ( https://unpkg.com/@reduxjs/toolkit/dist/redux-toolkit.umd.js ) directly.
63
82
You can’t perform that action at this time.
0 commit comments