fix example: Props/Default values

Updated example code for calling component w/o props to show the default taking effect
pull/2949/head
Pedro Mass 6 years ago committed by GitHub
parent f7e6b32885
commit 8cd7c41036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save