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

Method render

src/__tests__/render.js:47–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 this.portalNode.parentNode.removeChild(this.portalNode)
46 }
47 render() {
48 return ReactDOM.createPortal(
49 <Greet greeting="Hello" subject="World" />,
50 this.portalNode,
51 )
52 }
53 }
54
55 function Greet({greeting, subject}) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected