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 17:19:09 +00:00
committed by Dan Abramov
parent fc3999af09
commit 0741d52cd7
+1 -1
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) {