[docs] fix typo in Context API tutorial (#7063)

pull/7738/head
Maxi Ferreira 5 years ago committed by GitHub
parent eb7af3076f
commit 62a11a8d59

@ -11,7 +11,7 @@ There are two halves to the context API — `setContext` and `getContext`. If a
Let's set the context first. In `Map.svelte`, import `setContext` from `svelte` and `key` from `mapbox.js` and call `setContext`:
```js
import { onMount, setContext } from 'svelte';
import { onDestroy, setContext } from 'svelte';
import { mapbox, key } from './mapbox.js';
setContext(key, {

Loading…
Cancel
Save