package
A HOC that will auto-scroll to the bottom when a property changes
npm install react-auto-scrollGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
A HOC that will auto-scroll to the bottom when a property changes.
It'll track a property and scroll to the bottom whenever it changes. If the user has scrolled up, it preserves the user's scroll position when the property changes.
$ npm i react-auto-scrollvar React = require('react')
var AutoScroll = require('react-auto-scroll')
var Component = AutoScroll({
property: 'propertyName'
})(React.createClass(/* ... */))AutoScroll(options)(Component)
options.property (string) Property to track for scrolling
MIT