improve readme

This commit is contained in:
Rene Haas
2022-11-17 09:25:17 +01:00
parent eb17498bdc
commit 8cddb3b7c4
+2 -4
View File
@@ -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`.