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

Function Greet

src/__tests__/render.js:55–63  ·  view source on GitHub ↗
({greeting, subject})

Source from the content-addressed store, hash-verified

53 }
54
55 function Greet({greeting, subject}) {
56 return (
57 <div>
58 <strong>
59 {greeting} {subject}
60 </strong>
61 </div>
62 )
63 }
64
65 const {unmount} = render(<MyPortal />)
66 expect(screen.getByText('Hello World')).toBeInTheDocument()

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…