We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a4babd commit 0f181a2Copy full SHA for 0f181a2
apps/web/content/docs/concepts/utils.mdx
@@ -48,13 +48,13 @@ function MyLayout({
48
}
49
```
50
51
-For more control over the selection, you can use the `useSelection` hook.
+For more control over the selection, you can use the `useSelectedIndex` hook.
52
53
```tsx my-layout.tsx -c
54
-import { useSelection } from "codehike/utils/selection"
+import { useSelectedIndex } from "codehike/utils/selection"
55
56
function MyLayout(...) {
57
- const [ selectedIndex, setSelectedIndex ] = useSelection()
+ const [ selectedIndex, setSelectedIndex ] = useSelectedIndex()
58
...
59
60
0 commit comments