mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 12:20:38 +01:00
`react-server` precludes loading code that expects to be run in a client context. This includes react-dom/client react-dom/server react-dom/unstable_testing react-dom/profiling and react-dom/static This update makes importing any of these client only entrypoints an error
6 lines
101 B
JavaScript
6 lines
101 B
JavaScript
'use strict';
|
|
|
|
throw new Error(
|
|
'react-dom/client is not supported in React Server Components.'
|
|
);
|