mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
7e99c2a606c8990755de7b09cfcdce0fefeef99a
Adds a separate entry point for the react-dom package when it's accessed from a Server Component environment, using the "react-server" export condition. When you're inside a Server Component module, you won't be able to import client-only APIs like useState. This applies to almost all React DOM exports, except for Float ones like preload. DiffTrain build for commit https://github.com/facebook/react/commit/2d2f2af29bc3175530a158bc90189fc6f12f7855.
react-fbsource-import
Description
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%