Before
After
Installation
- Via npm
$ npm install simplebar-react --save
- Via Yarn
$ yarn add simplebar-react
Code
_app.js
import 'simplebar/dist/simplebar.min.css';
Hoge.js
import SimpleBar from 'simplebar-react';
const Hoge = () => (
<SimpleBar style={{ maxHeight: 300 }}>
// your content
</SimpleBar>
);