MCPcopy
hub / github.com/testing-library/react-hooks-testing-library / rerender

Function rerender

src/dom/pure.ts:22–26  ·  view source on GitHub ↗
(props?: TProps)

Source from the content-addressed store, hash-verified

20 })
21 },
22 rerender(props?: TProps) {
23 act(() => {
24 ReactDOM.render(testHarness(props), container)
25 })
26 },
27 unmount() {
28 act(() => {
29 ReactDOM.unmountComponentAtNode(container)

Callers 8

rerenderHookFunction · 0.50
useEffect.test.tsFile · 0.50
useMemo.test.tsFile · 0.50
errorHook.test.tsFile · 0.50

Calls 1

testHarnessFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…