Update text.md

pull/2990/head
Rich Harris 5 years ago committed by GitHub
parent 17c4a25016
commit 0dde4f51e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,9 +10,9 @@ We can easily specify default values for props:
</script>
```
If we now instantiate the 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
<Nested answer={42}/>
<Nested/>
```
```

Loading…
Cancel
Save