import * as React from "react"; import SmoothScrollbar = require('react-smooth-scrollbar'); { } } />; // ; TODO: These options don't seem to be documented declare const number: number; declare const boolean: boolean; declare const element: EventTarget; declare const object: object; declare const func: () => void; class Test extends React.Component { ref: SmoothScrollbar | null; componentDidMount() { if (this.ref) { this.ref.scrollbar.scrollTo(0, 500); } } render() { return ( this.ref = ref} /> ); } } class App extends React.Component { render() { return ( your contents here... ); } }