File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,7 @@ route: '/reference/api'
18
18
## ` renderHook `
19
19
20
20
``` ts
21
- function renderHook(
22
- callback : (props ? : any ) => any ,
23
- options ? : RenderHookOptions
24
- ): RenderHookResult
21
+ function renderHook(callback : (props ? : any ) => any , options ? : RenderHookOptions ): RenderHookResult
25
22
```
26
23
27
24
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
100
97
function hydrate(): void
101
98
` ` `
102
99
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 .
105
102
106
103
A function to hydrate a server rendered component into the DOM. This is required before you can
107
104
interact with the hook, whether that is an `act` or `rerender` call. Effects created using
Original file line number Diff line number Diff line change 1
1
---
2
- ---
3
2
name : Server-Side Rendering
4
3
menu : Usage
5
- route: '/usage/ssr-hooks '
4
+ route : ' /usage/ssr'
6
5
---
7
6
8
7
# Server-Side Rendering (SSR)
You can’t perform that action at this time.
0 commit comments