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
Copy file name to clipboardExpand all lines: docs/react/installation.md
+11-9Lines changed: 11 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -7,26 +7,28 @@ You can install React Query via [NPM](https://npmjs.com),
7
7
or a good ol' `<script>` via
8
8
[unpkg.com](https://unpkg.com).
9
9
10
+
> v5 is currently in alpha.
11
+
10
12
### NPM
11
13
12
14
```bash
13
-
$ npm i @tanstack/react-query
15
+
$ npm i @tanstack/react-query@alpha
14
16
# or
15
-
$ pnpm add @tanstack/react-query
17
+
$ pnpm add @tanstack/react-query@alpha
16
18
# or
17
-
$ yarn add @tanstack/react-query
19
+
$ yarn add @tanstack/react-query@alpha
18
20
```
19
21
20
-
React Query is compatible with React v16.8+ and works with ReactDOM and React Native.
22
+
React Query is compatible with React v18+ and works with ReactDOM and React Native.
21
23
22
-
> Wanna give it a spin before you download? Try out the [simple](/query/v4/docs/examples/react/simple) or [basic](/query/v4/docs/examples/react/basic) examples!
24
+
> Wanna give it a spin before you download? Try out the [simple](../examples/react/simple) or [basic](../examples/react/basic) examples!
23
25
24
26
### CDN
25
27
26
28
If you're not using a module bundler or package manager we also have a global ("UMD") build hosted on the [unpkg.com](https://unpkg.com) CDN. Simply add the following `<script>` tag to the bottom of your HTML file:
Once you've added this you will have access to the `window.ReactQuery` object and its exports.
@@ -53,9 +55,9 @@ opera >= 70
53
55
It is recommended to also use our [ESLint Plugin Query](./eslint/eslint-plugin-query) to help you catch bugs and inconsistencies while you code. You can install it via:
0 commit comments