Skip to content

Commit 968106d

Browse files
committed
feat(docs): add react bindings to getting started
1 parent 16f5691 commit 968106d

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

docs/introduction/getting-started.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ hide_title: true
77

88
import LiteYouTubeEmbed from 'react-lite-youtube-embed';
99
import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css'
10+
import Tabs from '@theme/Tabs';
11+
import TabItem from '@theme/TabItem';
1012

1113
 
1214

@@ -46,18 +48,35 @@ npx create-react-app my-app --template redux-typescript
4648

4749
Redux Toolkit is available as a package on NPM for use with a module bundler or in a Node application:
4850

51+
<Tabs>
52+
<TabItem value="npm" label="npm" default>
53+
4954
```bash
50-
# NPM
5155
npm install @reduxjs/toolkit
5256
```
5357

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>
5566

5667
```bash
57-
# Yarn
5868
yarn add @reduxjs/toolkit
5969
```
6070

71+
If you need React bindings:
72+
73+
```bash
74+
yarn add react-redux
75+
```
76+
77+
</TabItem>
78+
</Tabs>
79+
6180
It is also available as a precompiled UMD package that defines a `window.RTK` global variable.
6281
The UMD package can be used as a [`<script>` tag](https://unpkg.com/@reduxjs/toolkit/dist/redux-toolkit.umd.js) directly.
6382

0 commit comments

Comments
 (0)