Skip to content

Commit 29e9867

Browse files
[Documentation] [Main concepts: State and Lifecycle] (#2981)
Co-authored-by: R Nabors <[email protected]>
1 parent bf2049d commit 29e9867

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Diff for: content/docs/state-and-lifecycle.md

-6
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,6 @@ This is why state is often called local or encapsulated. It is not accessible to
417417

418418
A component may choose to pass its state down as props to its child components:
419419

420-
```js
421-
<h2>It is {this.state.date.toLocaleTimeString()}.</h2>
422-
```
423-
424-
This also works for user-defined components:
425-
426420
```js
427421
<FormattedDate date={this.state.date} />
428422
```

0 commit comments

Comments
 (0)