ReactDOMLegacyServerBrowser.js — react Source File
Architecture documentation for ReactDOMLegacyServerBrowser.js, a javascript file in the react codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f5aafa09_0e63_9796_965e_6285dfb6de98["ReactDOMLegacyServerBrowser.js"] 02c4299e_b30e_07d4_d500_7acc5ea7cd1c["ReactDOMLegacyServerImpl.js"] f5aafa09_0e63_9796_965e_6285dfb6de98 --> 02c4299e_b30e_07d4_d500_7acc5ea7cd1c a2131476_ce28_ca3e_82c7_78cceff93edb["renderToStringImpl"] f5aafa09_0e63_9796_965e_6285dfb6de98 --> a2131476_ce28_ca3e_82c7_78cceff93edb d8f20c67_f5fa_0f0a_c967_c41fd9ffce07["ReactTypes"] f5aafa09_0e63_9796_965e_6285dfb6de98 --> d8f20c67_f5fa_0f0a_c967_c41fd9ffce07 style f5aafa09_0e63_9796_965e_6285dfb6de98 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 {ReactNodeList} from 'shared/ReactTypes';
import {version, renderToStringImpl} from './ReactDOMLegacyServerImpl';
type ServerOptions = {
identifierPrefix?: string,
};
function renderToString(
children: ReactNodeList,
options?: ServerOptions,
): string {
return renderToStringImpl(
children,
options,
false,
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server',
);
}
function renderToStaticMarkup(
children: ReactNodeList,
options?: ServerOptions,
): string {
return renderToStringImpl(
children,
options,
true,
'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server',
);
}
export {renderToString, renderToStaticMarkup, version};
Domain
Dependencies
Source
Frequently Asked Questions
What does ReactDOMLegacyServerBrowser.js do?
ReactDOMLegacyServerBrowser.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does ReactDOMLegacyServerBrowser.js depend on?
ReactDOMLegacyServerBrowser.js imports 3 module(s): ReactDOMLegacyServerImpl.js, ReactTypes, renderToStringImpl.
Where is ReactDOMLegacyServerBrowser.js in the architecture?
ReactDOMLegacyServerBrowser.js is located at packages/react-dom/src/server/ReactDOMLegacyServerBrowser.js (domain: BabelCompiler, directory: packages/react-dom/src/server).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free