mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-23 02:00:36 +03:00
improve codebase
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { OverlayScrollbarsComponent } from 'overlayscrollbars-react';
|
import { OverlayScrollbarsComponent } from 'overlayscrollbars-react';
|
||||||
import logo from './logo.svg';
|
import logo from './logo.svg';
|
||||||
|
|
||||||
function App() {
|
const App = () => {
|
||||||
return (
|
return (
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<OverlayScrollbarsComponent
|
<OverlayScrollbarsComponent
|
||||||
@@ -13,6 +13,6 @@ function App() {
|
|||||||
</OverlayScrollbarsComponent>
|
</OverlayScrollbarsComponent>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
export default App;
|
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)
|
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
|
- `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.
|
- `useOverlayScrollbars` will now always try to destroy the instance if the component unmounts.
|
||||||
|
|
||||||
### Breaking Changes
|
### 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)
|
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
|
- `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.
|
- `useOverlayScrollbars` will now always try to destroy the instance if the component unmounts.
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
|||||||
Reference in New Issue
Block a user