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

Function WrapperComponent

src/__tests__/rerender.js:53–55  ·  view source on GitHub ↗
({children})

Source from the content-addressed store, hash-verified

51 configure({reactStrictMode: true})
52
53 const WrapperComponent = ({children}) => (
54 <div data-testid="wrapper">{children}</div>
55 )
56 const Greeting = props => <div>{props.message}</div>
57 const {container, rerender} = render(<Greeting message="hi" />, {
58 wrapper: WrapperComponent,

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…