Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
scrollToBottom = () => {
console.log("scroll to bottom");
scroll.scrollToBottom();
};
closeNavbar = () => {
componentDidUpdate() {
animateScroll.scrollToBottom({containerId: 'chat-content'});
}
render() {
<li> <a> animateScroll.scrollToBottom()}>Scroll To Bottom</a></li>
<li> <a> animateScroll.scrollMore(500)}>Scroll 500 More!</a></li>
const scrollToBottom = (e) => {
scroll.scrollToBottom()
e.currentTarget.blur()
}