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

Function TestComponent

src/pure.js:335–343  ·  view source on GitHub ↗
({renderCallbackProps})

Source from the content-addressed store, hash-verified

333 const result = React.createRef()
334
335 function TestComponent({renderCallbackProps}) {
336 const pendingResult = renderCallback(renderCallbackProps)
337
338 React.useEffect(() => {
339 result.current = pendingResult
340 })
341
342 return null
343 }
344
345 const {rerender: baseRerender, unmount} = render(
346 <TestComponent renderCallbackProps={initialProps} />,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…