/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
status
packages/react-stream/index.js
26 строк
1 KB
Sebastian Markbåge
[Fizz] New Server Rendering Infra (#14144)
30 ноя 2018, 22:38
Не верифицирован
30 ноя 2018, 22:38
1d25aa5
Код
Авторство
О чём код?
/** * 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. */ // This entry point is intentionally not typed. It exists only for third-party // renderers. The renderers we ship (such as React DOM) instead import a named // "inline" entry point (for example, `react-stream/inline.dom`). It uses // the same code, but the Flow configuration redirects the host config to its // real implementation so we can check it against exact intended host types. // // Only one renderer (the one you passed to `yarn flow <renderer>`) is fully // type-checked at any given time. The Flow config maps the // `react-stream/inline.<renderer>` import (which is *not* Flow typed) to // `react-stream/inline-typed` (which *is*) for the current renderer. // On CI, we run Flow checks for each renderer separately. 'use strict'; const ReactFizzStreamer = require('./src/ReactFizzStreamer'); // TODO: decide on the top-level export form. // This is hacky but makes it work with both Rollup and Jest. module.exports = ReactFizzStreamer.default || ReactFizzStreamer;