MCPcopy Create free account
hub / github.com/adobe/react-spectrum / StrictModeWrapper

Function StrictModeWrapper

packages/dev/test-utils/src/StrictModeWrapper.tsx:15–21  ·  view source on GitHub ↗
(props: {children?: ReactNode})

Source from the content-addressed store, hash-verified

13import React, {ReactNode, StrictMode} from 'react';
14
15export function StrictModeWrapper(props: {children?: ReactNode}): ReactNode {
16 if (process.env.STRICT_MODE) {
17 return <StrictMode>{props.children}</StrictMode>;
18 }
19
20 return props.children;
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected