@@ -101,7 +101,7 @@ well as what is printed when you use `debug()`.
101101### ` hydrate `
102102
103103If 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
105105useful if you are using server - side rendering and use ReactDOM .hydrate to mount
106106your components .
107107
@@ -114,10 +114,10 @@ This option is only available when tests run with React 18 and earlier.
114114:::
115115
116116By 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 )).
118118However , if you ' re dealing with a legacy app that requires rendering like in
119119React 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
121121should enable this option by setting ` legacyRoot: true ` .
122122
123123### ` wrapper `
@@ -176,7 +176,7 @@ The containing DOM node of your rendered React Element (rendered using
176176> ` container.firstChild ` .
177177>
178178> 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 ),
180180> ` container.firstChild ` will only get the first child of that Fragment , not the
181181> Fragment itself .
182182
@@ -327,10 +327,10 @@ errors in your tests).
327327## ` act `
328328
329329This 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).
331331All it does is forward all arguments to the act function if your version of
332332react 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.
334334
335335## ` renderHook `
336336
@@ -432,7 +432,7 @@ expect(result.current).toBe('Alice')
432432` ` `
433433
434434Note 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
436436**committed** value.
437437
438438### ` rerender `
0 commit comments