Skip to content

Commit 052499d

Browse files
authored
Update Readme.md
1 parent 29f5009 commit 052499d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Readme.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ export default () => (
8383
)
8484
```
8585

86-
### Stateful components
86+
### Lifecycle components
8787

88-
When state, lifecycle hooks or initial data population you can export a `React.Component`:
88+
When you need state, lifecycle hooks or **initial data population** you can export a `React.Component`:
8989

9090
```jsx
9191
import React from 'react'
@@ -95,7 +95,6 @@ export default class extends React.Component {
9595
? { userAgent: req.headers.userAgent }
9696
: { userAgent: navigator.userAgent }
9797
}
98-
9998
render () {
10099
return <div>
101100
Hello World {this.props.userAgent}

0 commit comments

Comments
 (0)