Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Expose Server Components subset in stable "react"
  • Loading branch information
sebmarkbage committed Oct 23, 2022
commit 4b820ed524375af8f35b8d91602b415d5f1e091c
2 changes: 1 addition & 1 deletion packages/react/src/ReactSharedSubset.experimental.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export {
createElement,
createRef,
createServerContext,
experimental_use,
use,
forwardRef,
isValidElement,
lazy,
Expand Down
28 changes: 24 additions & 4 deletions packages/react/src/ReactSharedSubset.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,27 @@
* @flow
*/

// eslint-disable-next-line react-internal/prod-error-codes
throw new Error(
'This entry point is not yet supported outside of experimental channels',
);
export {
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
Children,
Fragment,
Profiler,
StrictMode,
Suspense,
cloneElement,
createElement,
createRef,
createServerContext,
use,
forwardRef,
isValidElement,
lazy,
memo,
startTransition,
useId,
useCallback,
useContext,
useDebugValue,
useMemo,
version,
} from './React';