Skip to content

Commit 2c649d0

Browse files
TheoTheo
Theo
authored and
Theo
committed
update docs
1 parent 2c43a49 commit 2c649d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ class MyList extends React.Component {
3636
export default Autoscroll(MyList)
3737
```
3838

39-
`Autoscroll(Component)`: returns the passed component without any additional markup.
40-
It scrolls the root node rendered by the component to the bottom whenever it updates, but not if the user has scrolled up.
39+
`Autoscroll(Component)`: returns a React `PureComponent` that renders the passed component without any additional markup. Whenever the wrapped component updates, it is scrolled to the bottom, unless the user has scrolled up.
4140

4241
## ⚠️ caveats ⚠️
4342

0 commit comments

Comments
 (0)