Added missing semicolons

pull/7290/head
babakfp 5 years ago
parent f37e18c5d2
commit 9301b1b5a1

@ -166,11 +166,11 @@ Like lifecycle functions, this must be called during component initialisation.
``` ```
<script> <script>
import { setContext } from 'svelte' import { setContext } from 'svelte';
import { writable } from 'svelte/store' import { writable } from 'svelte/store';
let count = writable(0) let count = writable(0);
setContext('count', count) setContext('count', count);
</script> </script>
Count is: {$count} Count is: {$count}

@ -1,6 +1,6 @@
<script> <script>
import Parent from './Parent.svelte' import Parent from './Parent.svelte';
import Child from './Child.svelte' import Child from './Child.svelte';
</script> </script>
<Parent> <Parent>

@ -1,6 +1,6 @@
<script> <script>
import { getContext } from 'svelte' import { getContext } from 'svelte';
let count = getContext('count') let count = getContext('count');
</script> </script>
<p>Child's count is: {count}</p> <p>Child's count is: {count}</p>

@ -1,8 +1,8 @@
<script> <script>
import { setContext } from 'svelte' import { setContext } from 'svelte';
let count = 0 let count = 0;
setContext('count', count) setContext('count', count);
</script> </script>
<p>Parent's count is: {count}</p> <p>Parent's count is: {count}</p>

@ -1,6 +1,6 @@
<script> <script>
import Parent from './Parent.svelte' import Parent from './Parent.svelte';
import Child from './Child.svelte' import Child from './Child.svelte';
</script> </script>
<Parent> <Parent>

@ -1,6 +1,6 @@
<script> <script>
import { getContext } from 'svelte' import { getContext } from 'svelte';
let count = getContext('count') let count = getContext('count');
</script> </script>
<p>Child's count is: {$count}</p> <p>Child's count is: {$count}</p>

@ -1,9 +1,9 @@
<script> <script>
import { setContext } from 'svelte' import { setContext } from 'svelte';
import { writable } from 'svelte/store' import { writable } from 'svelte/store';
let count = writable(0) let count = writable(0);
setContext('count', count) setContext('count', count);
</script> </script>
<p>Parent's count is: {$count}</p> <p>Parent's count is: {$count}</p>

@ -11,8 +11,8 @@ To make it reactive, we need to convert the initial value of the `count` to a re
```HTML ```HTML
<!-- Parent.svelte --> <!-- Parent.svelte -->
<script> <script>
import { writable } from 'svelte/store' import { writable } from 'svelte/store';
let count = writable(0) let count = writable(0);
</script> </script>
``` ```

Loading…
Cancel
Save