Skip to content

Commit a461a6c

Browse files
committed
docs: change ssr-hooks to ssr
1 parent 1aa5465 commit a461a6c

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

docs/api-reference.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ route: '/reference/api'
1818
## `renderHook`
1919

2020
```ts
21-
function renderHook(
22-
callback: (props?: any) => any,
23-
options?: RenderHookOptions
24-
): RenderHookResult
21+
function renderHook(callback: (props?: any) => any, options?: RenderHookOptions): RenderHookResult
2522
```
2623

2724
Renders a test component that will call the provided `callback`, including any hooks it calls, every
@@ -100,8 +97,8 @@ A function to unmount the test component. This is commonly used to trigger clean
10097
function hydrate(): void
10198
```
10299

103-
> This is only used when using the `server` module. See [SSR](/usage/ssr-hooks) for more information
104-
> on server-side rendering your hooks.
100+
> This is only used when using the `server` module. See [SSR](/usage/ssr) for more information on
101+
> server-side rendering your hooks.
105102

106103
A function to hydrate a server rendered component into the DOM. This is required before you can
107104
interact with the hook, whether that is an `act` or `rerender` call. Effects created using

docs/usage/ssr-hooks.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
2-
---
32
name: Server-Side Rendering
43
menu: Usage
5-
route: '/usage/ssr-hooks'
4+
route: '/usage/ssr'
65
---
76

87
# Server-Side Rendering (SSR)

0 commit comments

Comments
 (0)