mirror of
https://github.com/facebook/react.git
synced 2026-02-26 00:05:02 +00:00
* move unstable_scheduleHydration to ReactDOMHydrationRoot * move definition of schedule hydration * fix test? * prototype * fix test * remove gating because unstable_scheduleHydration is no longer gated through index.stable.js because its exposed through ReactDOMHydrationRoot instead of the ReactDOM package * remove another gating
39 lines
1.0 KiB
JavaScript
39 lines
1.0 KiB
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
import {isEnabled} from './src/events/ReactDOMEventListener';
|
|
|
|
import {__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} from './src/client/ReactDOM';
|
|
|
|
// For classic WWW builds, include a few internals that are already in use.
|
|
Object.assign((__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: any), {
|
|
ReactBrowserEventEmitter: {
|
|
isEnabled,
|
|
},
|
|
});
|
|
|
|
export {
|
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
|
createPortal,
|
|
createRoot,
|
|
hydrateRoot,
|
|
findDOMNode,
|
|
flushSync,
|
|
hydrate,
|
|
render,
|
|
unmountComponentAtNode,
|
|
unstable_batchedUpdates,
|
|
unstable_createEventHandle,
|
|
unstable_flushControlled,
|
|
unstable_isNewReconciler,
|
|
unstable_renderSubtreeIntoContainer,
|
|
unstable_runWithPriority, // DO NOT USE: Temporarily exposed to migrate off of Scheduler.runWithPriority.
|
|
version,
|
|
} from './src/client/ReactDOM';
|