fix: the conent of tutorial 03-props 02-default-values

pull/8423/head
lijie 4 years ago
parent aa4d0fc264
commit 57fa2df77b

@ -2,5 +2,4 @@
import Nested from './Nested.svelte'; import Nested from './Nested.svelte';
</script> </script>
<Nested answer={42}/>
<Nested/> <Nested/>

@ -13,6 +13,5 @@ We can easily specify default values for props in `Nested.svelte`:
If we now add a second component *without* an `answer` prop, it will fall back to the default: If we now add a second component *without* an `answer` prop, it will fall back to the default:
```html ```html
<Nested answer={42}/>
<Nested/> <Nested/>
``` ```

Loading…
Cancel
Save