/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react/src/jsx/ReactJSXServer.js
28 строк
858 B
Andrew Clark
Combine ReactJSXElementValidator with main module (#28317)
20 фев 2024, 06:14
Не верифицирован
20 фев 2024, 06:14
ec160f3
Код
Авторство
О чём код?
/** * 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 {REACT_FRAGMENT_TYPE} from 'shared/ReactSymbols'; import { jsxProd, jsxProdSignatureRunningInDevWithDynamicChildren, jsxProdSignatureRunningInDevWithStaticChildren, jsxDEV as _jsxDEV, } from './ReactJSXElement'; const jsx: any = __DEV__ ? jsxProdSignatureRunningInDevWithDynamicChildren : jsxProd; // we may want to special case jsxs internally to take advantage of static children. // for now we can ship identical prod functions const jsxs: any = __DEV__ ? jsxProdSignatureRunningInDevWithStaticChildren : jsxProd; const jsxDEV: any = __DEV__ ? _jsxDEV : undefined; export {REACT_FRAGMENT_TYPE as Fragment, jsx, jsxs, jsxDEV};