ReactSharedInternalsServer.js — react Source File
Architecture documentation for ReactSharedInternalsServer.js, a javascript file in the react codebase. 2 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 75566b49_0e58_f1e7_ff83_42ae7be5db5f["ReactSharedInternalsServer.js"] 73ee4d09_92f7_9926_1264_d1a39753268a["ReactSharedInternalsServer"] 75566b49_0e58_f1e7_ff83_42ae7be5db5f --> 73ee4d09_92f7_9926_1264_d1a39753268a ac587885_e294_a1e9_b13f_5e7b920fdb42["react"] 75566b49_0e58_f1e7_ff83_42ae7be5db5f --> ac587885_e294_a1e9_b13f_5e7b920fdb42 e143ec37_0522_ef26_bb9c_180891985523["ReactFlightServer.js"] e143ec37_0522_ef26_bb9c_180891985523 --> 75566b49_0e58_f1e7_ff83_42ae7be5db5f style 75566b49_0e58_f1e7_ff83_42ae7be5db5f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {SharedStateServer} from 'react/src/ReactSharedInternalsServer';
import * as React from 'react';
const ReactSharedInternalsServer: SharedStateServer =
// $FlowFixMe: It's defined in the one we resolve to.
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
if (!ReactSharedInternalsServer) {
throw new Error(
'The "react" package in this environment is not configured correctly. ' +
'The "react-server" condition must be enabled in any environment that ' +
'runs React Server Components.',
);
}
export default ReactSharedInternalsServer;
Domain
Dependencies
- ReactSharedInternalsServer
- react
Imported By
Source
Frequently Asked Questions
What does ReactSharedInternalsServer.js do?
ReactSharedInternalsServer.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does ReactSharedInternalsServer.js depend on?
ReactSharedInternalsServer.js imports 2 module(s): ReactSharedInternalsServer, react.
What files import ReactSharedInternalsServer.js?
ReactSharedInternalsServer.js is imported by 1 file(s): ReactFlightServer.js.
Where is ReactSharedInternalsServer.js in the architecture?
ReactSharedInternalsServer.js is located at packages/react-server/src/ReactSharedInternalsServer.js (domain: BabelCompiler, directory: packages/react-server/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free