| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | * |
| 7 | * @flow |
| 8 | */ |
| 9 | import {REACT_FRAGMENT_TYPE} from 'shared/ReactSymbols'; |
| 10 | import { |
| 11 | jsxProd, |
| 12 | jsxProdSignatureRunningInDevWithDynamicChildren, |
| 13 | jsxProdSignatureRunningInDevWithStaticChildren, |
| 14 | jsxDEV as _jsxDEV, |
| 15 | } from './ReactJSXElement'; |
| 16 | |
| 17 | const jsx: any = __DEV__ |
| 18 | ? jsxProdSignatureRunningInDevWithDynamicChildren |
| 19 | : jsxProd; |
| 20 | // we may want to special case jsxs internally to take advantage of static children. |
| 21 | // for now we can ship identical prod functions |
| 22 | const jsxs: any = __DEV__ |
| 23 | ? jsxProdSignatureRunningInDevWithStaticChildren |
| 24 | : jsxProd; |
| 25 | |
| 26 | const jsxDEV: any = __DEV__ ? _jsxDEV : undefined; |
| 27 | |
| 28 | export {REACT_FRAGMENT_TYPE as Fragment, jsx, jsxs, jsxDEV}; |