We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f42a2d5 commit c6f47c1Copy full SHA for c6f47c1
docs/usage/ssr.md
@@ -46,7 +46,7 @@ import { renderHook, act } from '@testing-library/react-hooks/server'
46
import useCounter from './useCounter'
47
48
test('should increment counter', () => {
49
- const { result } = renderHook(() => useCounter(0))
+ const { result } = renderHook(() => useCounter())
50
51
act(() => {
52
result.current.increment()
@@ -64,7 +64,7 @@ import { renderHook, act } from '@testing-library/react-hooks/server'
64
65
66
67
- const { result, hydrate } = renderHook(() => useCounter(0))
+ const { result, hydrate } = renderHook(() => useCounter())
68
69
hydrate()
70
0 commit comments