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. /**
    
  11.  * This is a renderer of React that doesn't have a render target output.
    
  12.  * It is useful to demonstrate the internals of the reconciler in isolation
    
  13.  * and for testing semantics of reconciliation separate from the host
    
  14.  * environment.
    
  15.  */
    
  16. 
    
  17. import ReactFiberReconciler from 'react-reconciler';
    
  18. import createReactNoop from './createReactNoop';
    
  19. 
    
  20. export const {
    
  21.   _Scheduler,
    
  22.   getChildren,
    
  23.   dangerouslyGetChildren,
    
  24.   getPendingChildren,
    
  25.   dangerouslyGetPendingChildren,
    
  26.   getOrCreateRootContainer,
    
  27.   createRoot,
    
  28.   createLegacyRoot,
    
  29.   getChildrenAsJSX,
    
  30.   getPendingChildrenAsJSX,
    
  31.   getSuspenseyThingStatus,
    
  32.   resolveSuspenseyThing,
    
  33.   resetSuspenseyThingCache,
    
  34.   createPortal,
    
  35.   render,
    
  36.   renderLegacySyncRoot,
    
  37.   renderToRootWithID,
    
  38.   unmountRootWithID,
    
  39.   findInstance,
    
  40.   flushNextYield,
    
  41.   startTrackingHostCounters,
    
  42.   stopTrackingHostCounters,
    
  43.   expire,
    
  44.   flushExpired,
    
  45.   batchedUpdates,
    
  46.   deferredUpdates,
    
  47.   discreteUpdates,
    
  48.   idleUpdates,
    
  49.   flushSync,
    
  50.   flushPassiveEffects,
    
  51.   act,
    
  52.   dumpTree,
    
  53.   getRoot,
    
  54.   // TODO: Remove this after callers migrate to alternatives.
    
  55.   unstable_runWithPriority,
    
  56. } = createReactNoop(
    
  57.   ReactFiberReconciler, // reconciler
    
  58.   true, // useMutation
    
  59. );