UNPKG

643 BTypeScriptView Raw
1import { ReactElement } from 'react';
2
3/**
4 * Render a ReactElement to its initial HTML. This should only be used on the
5 * server.
6 * See https://facebook.github.io/react/docs/react-dom-stream.html#rendertostream
7 */
8export function renderToStream(element: ReactElement): any;
9
10/**
11 * Similar to renderToStream, except this doesn't create extra DOM attributes
12 * such as data-react-id that React uses internally.
13 * See https://facebook.github.io/react/docs/react-dom-stream.html#rendertostaticstream
14 */
15export function renderToStaticStream(element: ReactElement): any;
16export const version: string;
17
18export as namespace ReactDOMNodeStream;