main
js 62 lines 1.47 KB
Raw
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 flushDiscreteUpdates,
50 flushSync,
51 flushPassiveEffects,
52 act,
53 dumpTree,
54 getRoot,
55 // TODO: Remove this once callers migrate to alternatives.
56 // This should only be used by React internals.
57 unstable_runWithPriority,
58 // $FlowFixMe[signature-verification-failure]
59 } = createReactNoop(
60 ReactFiberReconciler, // reconciler
61 false, // useMutation
62 );