| 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 | export {default as __SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE} from './ReactSharedInternalsServer'; |
| 11 | |
| 12 | import {forEach, map, count, toArray, only} from './ReactChildren'; |
| 13 | import { |
| 14 | REACT_ACTIVITY_TYPE, |
| 15 | REACT_FRAGMENT_TYPE, |
| 16 | REACT_PROFILER_TYPE, |
| 17 | REACT_STRICT_MODE_TYPE, |
| 18 | REACT_SUSPENSE_TYPE, |
| 19 | REACT_VIEW_TRANSITION_TYPE, |
| 20 | } from 'shared/ReactSymbols'; |
| 21 | import { |
| 22 | cloneElement, |
| 23 | createElement, |
| 24 | isValidElement, |
| 25 | } from './jsx/ReactJSXElement'; |
| 26 | import {createRef} from './ReactCreateRef'; |
| 27 | import {use, useId, useCallback, useDebugValue, useMemo} from './ReactHooks'; |
| 28 | import {forwardRef} from './ReactForwardRef'; |
| 29 | import {lazy} from './ReactLazy'; |
| 30 | import {memo} from './ReactMemo'; |
| 31 | import {cache, cacheSignal} from './ReactCacheServer'; |
| 32 | import version from 'shared/ReactVersion'; |
| 33 | import {captureOwnerStack} from './ReactOwnerStack'; |
| 34 | |
| 35 | const Children = { |
| 36 | map, |
| 37 | forEach, |
| 38 | count, |
| 39 | toArray, |
| 40 | only, |
| 41 | }; |
| 42 | |
| 43 | export { |
| 44 | Children, |
| 45 | REACT_ACTIVITY_TYPE as Activity, |
| 46 | REACT_FRAGMENT_TYPE as Fragment, |
| 47 | REACT_PROFILER_TYPE as Profiler, |
| 48 | REACT_STRICT_MODE_TYPE as StrictMode, |
| 49 | REACT_SUSPENSE_TYPE as Suspense, |
| 50 | REACT_VIEW_TRANSITION_TYPE as ViewTransition, |
| 51 | cloneElement, |
| 52 | createElement, |
| 53 | createRef, |
| 54 | use, |
| 55 | forwardRef, |
| 56 | isValidElement, |
| 57 | lazy, |
| 58 | memo, |
| 59 | cache, |
| 60 | cacheSignal, |
| 61 | useId, |
| 62 | useCallback, |
| 63 | useDebugValue, |
| 64 | useMemo, |
| 65 | version, |
| 66 | captureOwnerStack, // DEV-only |
| 67 | }; |