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