# Esri Svelte Example ![GitHub package.json dependency version (dev dep on branch)](https://img.shields.io/github/package-json/dependency-version/gavinr/esri-svelte-example/dev/@arcgis/core) An example [Svelte](https://svelte.dev/) application that shows how use the [ArcGIS API for JavaScript](https://developers.arcgis.com/javascript/) to load a map. [View the live app here](https://esri-svelte-example.gavinr.com/). ## Get Started To get started, follow these instructions. 1. Run the [Vite init workflow](https://vitejs.dev/guide/#scaffolding-your-first-vite-project) choosing the Svelte (or Svelte TypeScript) template: ```bash npm init vite@latest ``` 2. Then install the dependencies and run: ```bash cd esri-svelte-project npm install npm install @arcgis/core --save-dev npm run dev ``` 3. Copy contents of [`App.svelte` in this repository](https://github.com/gavinr/esri-svelte-example/blob/master/src/App.svelte) into your `App.svelte`. 1. _Note: This `App.svelte` is not using TypeScript, so you must add back the `lang="ts"` line to the `