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. 
    
  10. import {isEnabled} from 'react-dom-bindings/src/events/ReactDOMEventListener';
    
  11. 
    
  12. import Internals from './src/ReactDOMSharedInternals';
    
  13. 
    
  14. // For classic WWW builds, include a few internals that are already in use.
    
  15. Object.assign((Internals: any), {
    
  16.   ReactBrowserEventEmitter: {
    
  17.     isEnabled,
    
  18.   },
    
  19. });
    
  20. 
    
  21. export {
    
  22.   createPortal,
    
  23.   createRoot,
    
  24.   hydrateRoot,
    
  25.   findDOMNode,
    
  26.   flushSync,
    
  27.   hydrate,
    
  28.   render,
    
  29.   unmountComponentAtNode,
    
  30.   unstable_batchedUpdates,
    
  31.   unstable_createEventHandle,
    
  32.   unstable_renderSubtreeIntoContainer,
    
  33.   unstable_runWithPriority, // DO NOT USE: Temporarily exposed to migrate off of Scheduler.runWithPriority.
    
  34.   useFormStatus,
    
  35.   useFormState,
    
  36.   prefetchDNS,
    
  37.   preconnect,
    
  38.   preload,
    
  39.   preloadModule,
    
  40.   preinit,
    
  41.   preinitModule,
    
  42.   version,
    
  43. } from './src/client/ReactDOM';
    
  44. 
    
  45. export {Internals as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED};