improve codebase

This commit is contained in:
Rene Haas
2022-11-30 19:04:27 +01:00
parent 82ed3f3376
commit 1976ccaebb
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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