Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1# With Svelte 2 3<p> 4 <a href="https://stackblitz.com/github/urql-graphql/urql/tree/main/examples/with-svelte"> 5 <img 6 alt="Open in StackBlitz" 7 src="https://img.shields.io/badge/open_in_stackblitz-1269D3?logo=stackblitz&style=for-the-badge" 8 /> 9 </a> 10 <a href="https://codesandbox.io/p/sandbox/github/urql-graphql/urql/tree/main/examples/with-svelte"> 11 <img 12 alt="Open in CodeSandbox" 13 src="https://img.shields.io/badge/open_in_codesandbox-151515?logo=codesandbox&style=for-the-badge" 14 /> 15 </a> 16</p> 17 18This example shows `@urql/svelte` in use with Svelte, as explained on the ["Svelte" page of the "Basics" 19documentation.](https://formidable.com/open-source/urql/docs/basics/svelte/) 20 21To run this example install dependencies and run the `start` script: 22 23```sh 24yarn install 25yarn run start 26# or 27npm install 28npm run start 29``` 30 31This example contains: 32 33- The `@urql/svelte` bindings with a client set up in [`src/App.svelte`](src/App.svelte) 34- A query for pokémon in [`src/PokemonList.svelte`](src/pages/PokemonList.svelte)