Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

installation.md

59 lines1.2 KB

1---
2id: installation
3title: Installation
4---
5​
6You can install Solid Query via [NPM](https://npmjs.com/),
7or a good ol' `<script>` via
8[ESM.sh](https://esm.sh/).
9​
10### NPM
11​
12```bash
13npm i @tanstack/solid-query
14```
15​
16or
17​
18```bash
19pnpm add @tanstack/solid-query
20```
21​
22or
23​
24```bash
25yarn add @tanstack/solid-query
26```
27​
28or
29​
30```bash
31bun add @tanstack/solid-query
32```
33​
34> Wanna give it a spin before you download? Try out the [simple](../examples/simple) or [basic](../examples/basic) examples!
35​
36### CDN
37​
38If you're not using a module bundler or package manager, you can also use this library via an ESM-compatible CDN such as [ESM.sh](https://esm.sh/). Simply add a `<script type="module">` tag to the bottom of your HTML file:
39​
40```html
41<script type="module">
42 import { QueryClient } from 'https://esm.sh/@tanstack/solid-query'
43</script>
44```
45​
46### Requirements
47​
48Solid Query is optimized for modern browsers. It is compatible with the following browsers config
49​
50```
51Chrome >= 91
52Firefox >= 90
53Edge >= 91
54Safari >= 15
55iOS >= 15
56Opera >= 77
57```
58​
59> Depending on your environment, you might need to add polyfills. If you want to support older browsers, you need to transpile the library from `node_modules` yourselves.