# Svelte Integration **Pattern: onMount + onDestroy** ```svelte
``` **Key points:** - Use `onMount` for initialization - Bind container with `bind:this={mapContainer}` - **Always implement `onDestroy`** to call `map.remove()` - Can pass `accessToken` directly to Map constructor in Svelte