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

Function createLegacyRoot

src/pure.js:141–153  ·  view source on GitHub ↗
(container)

Source from the content-addressed store, hash-verified

139}
140
141function createLegacyRoot(container) {
142 return {
143 hydrate(element) {
144 ReactDOM.hydrate(element, container)
145 },
146 render(element) {
147 ReactDOM.render(element, container)
148 },
149 unmount() {
150 ReactDOM.unmountComponentAtNode(container)
151 },
152 }
153}
154
155function renderRoot(
156 ui,

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…