mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-05-17 04:09:40 +03:00
improve codebase
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { OverlayScrollbarsComponent } from 'overlayscrollbars-react';
|
||||
import logo from './logo.svg';
|
||||
|
||||
function App() {
|
||||
const App = () => {
|
||||
return (
|
||||
<div className="App">
|
||||
<OverlayScrollbarsComponent
|
||||
@@ -13,6 +13,6 @@ function App() {
|
||||
</OverlayScrollbarsComponent>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export default App;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
Added the possibility to `defer` the initialization to a point in time when the browser is idle. (or to the next frame if `window.requestIdleCallback` is not supported)
|
||||
- `OverlayScrollbarsComponent` accepts now the `defer` property
|
||||
- `useOverlayScrollbars` params accept now the `defer` key
|
||||
- `useOverlayScrollbars` params accept now the `defer` property
|
||||
- `useOverlayScrollbars` will now always try to destroy the instance if the component unmounts.
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
Added the possibility to `defer` the initialization to a point in time when the browser is idle. (or to the next frame if `window.requestIdleCallback` is not supported)
|
||||
- `OverlayScrollbarsComponent` accepts now the `defer` property
|
||||
- `useOverlayScrollbars` params accept now the `defer` key
|
||||
- `useOverlayScrollbars` params accept now the `defer` property
|
||||
- `useOverlayScrollbars` will now always try to destroy the instance if the component unmounts.
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
Reference in New Issue
Block a user