Merge pull request #67 from flacki/patch-2

Fixed typo in documentation
This commit is contained in:
Micah Godbolt
2019-03-03 15:59:14 -08:00
committed by GitHub

View File

@@ -113,7 +113,7 @@ constructor(props) {
#### Using [object destructuring](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#Object_destructuring) for props and state
Both `props` are `state` are JavaScript objects. They have a bunch of key/value pairs in them which you can access via `this.props.foo` or `this.state.bar`. Sometimes they have MANY values inside of them which you need access to. You could do this:
Both `props` and `state` are JavaScript objects. They have a bunch of key/value pairs in them which you can access via `this.props.foo` or `this.state.bar`. Sometimes they have MANY values inside of them which you need access to. You could do this:
```js
let cat = this.props.cat;