diff --git a/packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js b/packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js index 559a0bf75e52f..5b36039ecc5dc 100644 --- a/packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js +++ b/packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js @@ -600,7 +600,7 @@ describe('ReactHooksInspectionIntegration', () => { it('should support useId hook', () => { function Foo(props) { - const id = React.unstable_useId(); + const id = React.useId(); const [state] = React.useState('hello'); return
{state}
; } diff --git a/packages/react-dom/src/__tests__/ReactDOMUseId-test.js b/packages/react-dom/src/__tests__/ReactDOMUseId-test.js index b61e79fa670d6..09ccdc86d14e6 100644 --- a/packages/react-dom/src/__tests__/ReactDOMUseId-test.js +++ b/packages/react-dom/src/__tests__/ReactDOMUseId-test.js @@ -34,7 +34,7 @@ describe('useId', () => { ReactDOMFizzServer = require('react-dom/server'); Stream = require('stream'); Suspense = React.Suspense; - useId = React.unstable_useId; + useId = React.useId; // Test Environment const jsdom = new JSDOM( diff --git a/packages/react/index.classic.fb.js b/packages/react/index.classic.fb.js index 70bbc6112a56c..33c770f00fed5 100644 --- a/packages/react/index.classic.fb.js +++ b/packages/react/index.classic.fb.js @@ -40,7 +40,7 @@ export { unstable_getCacheSignal, unstable_getCacheForType, unstable_useCacheRefresh, - unstable_useId, + useId, useCallback, useContext, useDebugValue, diff --git a/packages/react/index.experimental.js b/packages/react/index.experimental.js index bc3f4883bdb3d..d4dc33a4db01a 100644 --- a/packages/react/index.experimental.js +++ b/packages/react/index.experimental.js @@ -36,7 +36,7 @@ export { unstable_getCacheSignal, unstable_getCacheForType, unstable_useCacheRefresh, - unstable_useId, + useId, useCallback, useContext, useDebugValue, diff --git a/packages/react/index.js b/packages/react/index.js index a27507524e50b..6a249ba432c72 100644 --- a/packages/react/index.js +++ b/packages/react/index.js @@ -61,7 +61,7 @@ export { unstable_getCacheSignal, unstable_getCacheForType, unstable_useCacheRefresh, - unstable_useId, + useId, useCallback, useContext, useDebugValue, diff --git a/packages/react/index.modern.fb.js b/packages/react/index.modern.fb.js index 922acfc158109..5b0d75e21460b 100644 --- a/packages/react/index.modern.fb.js +++ b/packages/react/index.modern.fb.js @@ -39,7 +39,7 @@ export { unstable_getCacheSignal, unstable_getCacheForType, unstable_useCacheRefresh, - unstable_useId, + useId, useCallback, useContext, useDebugValue, diff --git a/packages/react/index.stable.js b/packages/react/index.stable.js index eb9673efd16ad..234ec8336a9ed 100644 --- a/packages/react/index.stable.js +++ b/packages/react/index.stable.js @@ -29,7 +29,7 @@ export { lazy, memo, startTransition, - unstable_useId, + useId, useCallback, useContext, useDebugValue, diff --git a/packages/react/src/React.js b/packages/react/src/React.js index 5fe5b4d96b609..891269ee32653 100644 --- a/packages/react/src/React.js +++ b/packages/react/src/React.js @@ -126,6 +126,6 @@ export { REACT_CACHE_TYPE as unstable_Cache, // enableScopeAPI REACT_SCOPE_TYPE as unstable_Scope, - useId as unstable_useId, + useId, act, }; diff --git a/packages/react/unstable-shared-subset.experimental.js b/packages/react/unstable-shared-subset.experimental.js index 7a9352f30199a..a24e302e49c4a 100644 --- a/packages/react/unstable-shared-subset.experimental.js +++ b/packages/react/unstable-shared-subset.experimental.js @@ -27,7 +27,7 @@ export { unstable_DebugTracingMode, unstable_getCacheSignal, unstable_getCacheForType, - unstable_useId, + useId, useCallback, useContext, useDebugValue,