Update state-and-lifecycle.md (#8424)

* Update state-and-lifecycle.md

Isn't  clock state and props the same in this example?

* Clarify
This commit is contained in:
Van der Auwermeulen Grégoire
2017-01-04 18:18:52 +01:00
committed by Dan Abramov
parent de7e8a4709
commit 3b671d1d1b

View File

@@ -432,7 +432,7 @@ This also works for user-defined components:
<FormattedDate date={this.state.date} />
```
The `FormattedDate` component would receive the `date` in its props and wouldn't know whether it came from the `Clock`'s state, the props, or was typed by hand:
The `FormattedDate` component would receive the `date` in its props and wouldn't know whether it came from the `Clock`'s state, from the `Clock`'s props, or was typed by hand:
```js
function FormattedDate(props) {