diff options
| author | Christian Cleberg <[email protected]> | 2026-04-18 22:32:53 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-18 22:32:53 -0500 |
| commit | 580e798e16346eb894eb899edac82d2efdf40adc (patch) | |
| tree | 6dec3b7db678f781138b40d34da37d21ac8fbe7d /node_modules/react-dom/client.js | |
| download | brand-bench-580e798e16346eb894eb899edac82d2efdf40adc.tar.gz brand-bench-580e798e16346eb894eb899edac82d2efdf40adc.tar.bz2 brand-bench-580e798e16346eb894eb899edac82d2efdf40adc.zip | |
initial commit
Diffstat (limited to 'node_modules/react-dom/client.js')
| -rw-r--r-- | node_modules/react-dom/client.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/node_modules/react-dom/client.js b/node_modules/react-dom/client.js new file mode 100644 index 0000000..8e61108 --- /dev/null +++ b/node_modules/react-dom/client.js @@ -0,0 +1,25 @@ +'use strict'; + +var m = require('react-dom'); +if (process.env.NODE_ENV === 'production') { + exports.createRoot = m.createRoot; + exports.hydrateRoot = m.hydrateRoot; +} else { + var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + exports.createRoot = function(c, o) { + i.usingClientEntryPoint = true; + try { + return m.createRoot(c, o); + } finally { + i.usingClientEntryPoint = false; + } + }; + exports.hydrateRoot = function(c, h, o) { + i.usingClientEntryPoint = true; + try { + return m.hydrateRoot(c, h, o); + } finally { + i.usingClientEntryPoint = false; + } + }; +} |
