@react-xp/strict-mode
Version:
This is a React Experience strict-mode package
10 lines • 533 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
import { strictModeContext } from './strictModeContext';
export const StrictModeProvider = ({ children, isActive = true, }) => {
if (!isActive || process.env.NODE_ENV === 'production') {
return (_jsx(strictModeContext.Provider, { value: false, children: children }));
}
return (_jsx(React.StrictMode, { children: _jsx(strictModeContext.Provider, { value: true, children: children }) }));
};
//# sourceMappingURL=strictModeProvider.js.map