MCPcopy Index your code
hub / github.com/testing-library/react-testing-library / wrapUiIfNeeded

Function wrapUiIfNeeded

src/pure.js:86–90  ·  view source on GitHub ↗
(innerElement, wrapperComponent)

Source from the content-addressed store, hash-verified

84}
85
86function wrapUiIfNeeded(innerElement, wrapperComponent) {
87 return wrapperComponent
88 ? React.createElement(wrapperComponent, null, innerElement)
89 : innerElement
90}
91
92function createConcurrentRoot(
93 container,

Callers 2

createConcurrentRootFunction · 0.85
renderRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…