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

Function rerender

src/server/pure.ts:39–46  ·  view source on GitHub ↗
(props?: TProps)

Source from the content-addressed store, hash-verified

37 }
38 },
39 rerender(props?: TProps) {
40 if (!container) {
41 throw new Error('You must hydrate the component before you can rerender')
42 }
43 act(() => {
44 ReactDOM.render(testHarness(props), container!)
45 })
46 },
47 unmount() {
48 if (container) {
49 act(() => {

Callers

nothing calls this directly

Calls 1

testHarnessFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…