@@ -101,7 +101,7 @@ well as what is printed when you use `debug()`.
101
101
### ` hydrate `
102
102
103
103
If hydrate is set to true , then it will render with
104
- [ReactDOM .hydrate ](https :// reactjs.org/docs /react-dom.html #hydrate). This may be
104
+ [ReactDOM .hydrate ](https :// react.dev/reference /react-dom/hydrate #hydrate). This may be
105
105
useful if you are using server - side rendering and use ReactDOM .hydrate to mount
106
106
your components .
107
107
@@ -114,10 +114,10 @@ This option is only available when tests run with React 18 and earlier.
114
114
:::
115
115
116
116
By default we ' ll render with support for concurrent features (i.e.
117
- [` ReactDOMClient.createRoot ` ](https :// reactjs.org/docs /react-dom- client.html#createroot )).
117
+ [` ReactDOMClient.createRoot ` ](https :// react.dev/reference /react-dom/ client/createRoot )).
118
118
However , if you ' re dealing with a legacy app that requires rendering like in
119
119
React 17 (i .e .
120
- [` ReactDOM.render ` ](https :// reactjs.org/docs /react-dom.html# render)) then you
120
+ [` ReactDOM.render ` ](https :// react.dev/reference /react-dom/ render)) then you
121
121
should enable this option by setting ` legacyRoot: true ` .
122
122
123
123
### ` wrapper `
@@ -176,7 +176,7 @@ The containing DOM node of your rendered React Element (rendered using
176
176
> ` container.firstChild ` .
177
177
>
178
178
> NOTE : When that root element is a
179
- > [React Fragment ](https :// reactjs.org/docs/fragments.html ),
179
+ > [React Fragment ](https :// react.dev/reference/react/Fragment ),
180
180
> ` container.firstChild ` will only get the first child of that Fragment , not the
181
181
> Fragment itself .
182
182
@@ -327,10 +327,10 @@ errors in your tests).
327
327
## ` act `
328
328
329
329
This is a light wrapper around the
330
- [ ` react - dom / test - utils ` ` act ` function](https://reactjs.org/docs/test-utils.html# act).
330
+ [ ` react ` ` act ` function](https://react.dev/reference/react/ act).
331
331
All it does is forward all arguments to the act function if your version of
332
332
react supports ` act ` . It is recommended to use the import from
333
- ` @testing - library / react ` over ` react - dom / test - utils ` for consistency reasons.
333
+ ` @testing - library / react ` over ` react ` for consistency reasons.
334
334
335
335
## ` renderHook `
336
336
@@ -432,7 +432,7 @@ expect(result.current).toBe('Alice')
432
432
` ` `
433
433
434
434
Note that the value is held in ` result .current ` . Think of ` result ` as a
435
- [ref](https://reactjs.org/docs/glossary.html# refs) for the most recently
435
+ [ref](https://react.dev/learn/referencing-values-with- refs) for the most recently
436
436
**committed** value.
437
437
438
438
### ` rerender `
0 commit comments