Skip to content

Commit

Permalink
Merge pull request #2842 from rahsheen/feat/add-react-bindings-to-get…
Browse files Browse the repository at this point in the history
…ting-started
  • Loading branch information
markerikson authored Jan 28, 2023
2 parents d2d0f70 + 968106d commit 37a33fb
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions docs/introduction/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ hide_title: true

import LiteYouTubeEmbed from 'react-lite-youtube-embed';
import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css'
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

 

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

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

<Tabs>
<TabItem value="npm" label="npm" default>

```bash
# NPM
npm install @reduxjs/toolkit
```

or
If you need React bindings:

```bash
npm install react-redux
```

</TabItem>
<TabItem value="yarn" label="yarn" default>

```bash
# Yarn
yarn add @reduxjs/toolkit
```

If you need React bindings:

```bash
yarn add react-redux
```

</TabItem>
</Tabs>

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](https://unpkg.com/@reduxjs/toolkit/dist/redux-toolkit.umd.js) directly.

Expand Down

0 comments on commit 37a33fb

Please sign in to comment.