MCPcopy
hub / github.com/testing-library/react-testing-library / strictModeIfNeeded

Function strictModeIfNeeded

src/pure.js:80–84  ·  view source on GitHub ↗
(innerElement, reactStrictMode)

Source from the content-addressed store, hash-verified

78const mountedRootEntries = []
79
80function strictModeIfNeeded(innerElement, reactStrictMode) {
81 return reactStrictMode ?? getConfig().reactStrictMode
82 ? React.createElement(React.StrictMode, null, innerElement)
83 : innerElement
84}
85
86function wrapUiIfNeeded(innerElement, wrapperComponent) {
87 return wrapperComponent

Callers 2

createConcurrentRootFunction · 0.85
renderRootFunction · 0.85

Calls 1

getConfigFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…