mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Update entry point exports (#21488)
The following APIs have been added to the `react` stable entry point: * `SuspenseList` * `startTransition` * `unstable_createMutableSource` * `unstable_useMutableSource` * `useDeferredValue` * `useTransition` The following APIs have been added or removed from the `react-dom` stable entry point: * `createRoot` * `unstable_createPortal` (removed) The following APIs have been added to the `react-is` stable entry point: * `SuspenseList` * `isSuspenseList` The following feature flags have been changed from experimental to true: * `enableLazyElements` * `enableSelectiveHydration` * `enableSuspenseServerRenderer`
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@
|
||||
import * as React from 'react';
|
||||
import {
|
||||
createContext,
|
||||
unstable_startTransition as startTransition,
|
||||
startTransition,
|
||||
unstable_useCacheRefresh as useCacheRefresh,
|
||||
useCallback,
|
||||
useContext,
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import * as React from 'react';
|
||||
import {
|
||||
useContext,
|
||||
unstable_useCacheRefresh as useCacheRefresh,
|
||||
unstable_useTransition as useTransition,
|
||||
useTransition,
|
||||
} from 'react';
|
||||
import Button from '../Button';
|
||||
import ButtonIcon from '../ButtonIcon';
|
||||
|
||||
@@ -8,12 +8,7 @@
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import {
|
||||
unstable_useTransition as useTransition,
|
||||
useContext,
|
||||
useRef,
|
||||
useState,
|
||||
} from 'react';
|
||||
import {useTransition, useContext, useRef, useState} from 'react';
|
||||
import EditableName from './EditableName';
|
||||
import EditableValue from './EditableValue';
|
||||
import NewArrayValue from './NewArrayValue';
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ import {
|
||||
useMemo,
|
||||
useReducer,
|
||||
useRef,
|
||||
unstable_startTransition as startTransition,
|
||||
startTransition,
|
||||
} from 'react';
|
||||
import {createRegExp} from '../utils';
|
||||
import {BridgeContext, StoreContext} from '../context';
|
||||
|
||||
Reference in New Issue
Block a user