mirror of
https://github.com/facebook/react.git
synced 2026-02-24 04:33:04 +00:00
Adds a flag to disable legacy mode. Currently this flag is used to cause legacy mode apis like render and hydrate to throw. This change also removes render, hydrate, unmountComponentAtNode, and unstable_renderSubtreeIntoContainer from the experiemntal entrypoint. Right now for Meta builds this flag is off (legacy mode is still supported). In OSS builds this flag matches __NEXT_MAJOR__ which means it currently is on in experiemental. This means that after merging legacy mode is effectively removed from experimental builds. While this is a breaking change, experimental builds are not stable and users can pin to older versions or update their use of react-dom to no longer use legacy mode APIs.
41 lines
858 B
JavaScript
41 lines
858 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
export {
|
|
createPortal,
|
|
findDOMNode,
|
|
flushSync,
|
|
unstable_batchedUpdates,
|
|
useFormStatus,
|
|
useFormState,
|
|
prefetchDNS,
|
|
preconnect,
|
|
preload,
|
|
preloadModule,
|
|
preinit,
|
|
preinitModule,
|
|
version,
|
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
|
} from './index.experimental.js';
|
|
|
|
export {createRoot, hydrateRoot} from './client.js';
|
|
|
|
export {
|
|
createComponentSelector,
|
|
createHasPseudoClassSelector,
|
|
createRoleSelector,
|
|
createTestNameSelector,
|
|
createTextSelector,
|
|
getFindAllNodesFailureDescription,
|
|
findAllNodes,
|
|
findBoundingRects,
|
|
focusWithin,
|
|
observeVisibleRects,
|
|
} from 'react-reconciler/src/ReactFiberReconciler';
|