text: /**
   * 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.
   */
  
  import ReactVersion from 'shared/ReactVersion';
  import {
      REACT_CONCURRENT_MODE_TYPE,
      REACT_FRAGMENT_TYPE,
      REACT_PROFILER_TYPE,
      REACT_STRICT_MODE_TYPE,
      REACT_SUSPENSE_TYPE,
  } from 'shared/ReactSymbols';
  
  import { Component, PureComponent } from './ReactBaseClasses';
  import { createRef } from './ReactCreateRef';
  import { forEach, map, count, toArray, only } from './ReactChildren';
  import {
      createElement,
      createFactory,
      cloneElement,
      isValidElement,
  } from './ReactElement';
  import { createContext } from './ReactContext';
  import { lazy } from './ReactLazy';
  import forwardRef from './forwardRef';
  import pure from './pure';
  import {
      createElementWithValidation,
      createFactoryWithValidation,
      cloneElementWithValidation,
  } from './ReactElementValidator';
  import ReactSharedInternals from './ReactSharedInternals';
  
  const React = {
      Children: {
          map,
          forEach,
          count,
          toArray,
          only,
      },
  
      createRef,
      Component,
      PureComponent,
  
      createContext,
      forwardRef,
      lazy,
      pure,
  
      Fragment: REACT_FRAGMENT_TYPE,
      StrictMode: REACT_STRICT_MODE_TYPE,
      unstable_ConcurrentMode: REACT_CONCURRENT_MODE_TYPE,
      unstable_Suspense: REACT_SUSPENSE_TYPE,
      unstable_Profiler: REACT_PROFILER_TYPE,
  
      createElement: __DEV__ ? createElementWithValidation : createElement,
      cloneElement: __DEV__ ? cloneElementWithValidation : cloneElement,
      createFactory: __DEV__ ? createFactoryWithValidation : createFactory,
      isValidElement: isValidElement,
  
      version: ReactVersion,
  
      __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals,
  };
  
  export default React;
  