mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-05-17 04:29:39 +03:00
improve readme
This commit is contained in:
@@ -145,10 +145,6 @@ const Component = {
|
||||
initialize({ target: div.value });
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
instance().destroy();
|
||||
});
|
||||
|
||||
return () => <div ref={div} />
|
||||
},
|
||||
}
|
||||
@@ -156,6 +152,8 @@ const Component = {
|
||||
|
||||
The composable is for advanced usage and lets you control the whole initialization process. This is useful if you want to integrate it with other plugins.
|
||||
|
||||
The composable will destroy the instance automatically if the component unmounts.
|
||||
|
||||
### Parameters
|
||||
|
||||
Parameters are optional and similar to the `OverlayScrollbarsComponent`.
|
||||
|
||||
Reference in New Issue
Block a user