Example of using Velocity scroll command in React. The example includes sending and listing messages in a chat-like manner - once a message is sent, then scroll the messages list to the last added one.
The repo is a result from the following Stack Overflow contribution: velocity-react - animating scrollTop after component update.
npm install
npm start
The Velocity library is included in the example via velocity-react module. Its recommended to include the module for future advanced animations, because it provides already implemented React components for using Velocity's animations. However the repo don't use any animations. It uses only Velocity library's scroll
command.