跳到主要内容

React jsx

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
// 我们可能希望在内部对 jsxs 做特殊处理,以利用静态子元素。目前我们可以发布相同的生产函数
const jsxs: any = __DEV__
? jsxProdSignatureRunningInDevWithStaticChildren
: jsxProd;

const jsxDEV: any = __DEV__ ? _jsxDEV : undefined;

export { REACT_FRAGMENT_TYPE as Fragment, jsx, jsxs, jsxDEV };