mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
e601854f07
* Clean up partial renderer entry points I made a mistake by leaving server.browser.stable in which is the partial renderer for the browser build of stable. That should use the legacy fizz one. Since the only usage of the partial renderer now is at FB and we don't use it with Node, I removed the Node build of partial renderer too. * Remove GC test No code is running this path anymore. Ideally this should be ported to a Fizz form.
36 lines
940 B
JavaScript
36 lines
940 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
import ReactVersion from 'shared/ReactVersion';
|
|
import invariant from 'shared/invariant';
|
|
|
|
import {renderToString, renderToStaticMarkup} from './ReactDOMStringRenderer';
|
|
|
|
function renderToNodeStream() {
|
|
invariant(
|
|
false,
|
|
'ReactDOMServer.renderToNodeStream(): The streaming API is not available ' +
|
|
'in the browser. Use ReactDOMServer.renderToString() instead.',
|
|
);
|
|
}
|
|
|
|
function renderToStaticNodeStream() {
|
|
invariant(
|
|
false,
|
|
'ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available ' +
|
|
'in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.',
|
|
);
|
|
}
|
|
|
|
export {
|
|
renderToString,
|
|
renderToStaticMarkup,
|
|
renderToNodeStream,
|
|
renderToStaticNodeStream,
|
|
ReactVersion as version,
|
|
};
|