UNPKG

975 BJavaScriptView Raw
1/**
2 * @license React
3 * react-jsx-runtime.profiling.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */
10
11"use strict";
12var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
13 REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
14function jsxProd(type, config, maybeKey) {
15 var key = null;
16 void 0 !== maybeKey && (key = "" + maybeKey);
17 void 0 !== config.key && (key = "" + config.key);
18 if ("key" in config) {
19 maybeKey = {};
20 for (var propName in config)
21 "key" !== propName && (maybeKey[propName] = config[propName]);
22 } else maybeKey = config;
23 config = maybeKey.ref;
24 return {
25 $$typeof: REACT_ELEMENT_TYPE,
26 type: type,
27 key: key,
28 ref: void 0 !== config ? config : null,
29 props: maybeKey
30 };
31}
32exports.Fragment = REACT_FRAGMENT_TYPE;
33exports.jsx = jsxProd;
34exports.jsxs = jsxProd;