Using jquery.scrollbar in react application

1.8k Views Asked by At

I want to use jquery.scrollbar plugin in my react application. I want the jquery.scrollbar for every component which is scrollable. I have already installed it via npm. I am not getting any way to initialize it in my react component. How should I do it?

1

There are 1 best solutions below

3
Yuhao On

Always remember to import it in your components and called the function inside your JSX. I believe react js has some nice scrollbar which are more suitable

http://malte-wessel.github.io/react-custom-scrollbars/