Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[react-is] export individual modules to enable tree-shaking capabilities #13250

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 22 additions & 1 deletion packages/react-is/index.js
Expand Up @@ -9,4 +9,25 @@

'use strict';

export * from './src/ReactIs';
export {
typeOf,
AsyncMode,
ContextConsumer,
ContextProvider,
Element,
ForwardRef,
Fragment,
Profiler,
Portal,
StrictMode,
isValidElementType,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this line will work, any comments are welcomed.

isAsyncMode,
isContextConsumer,
isContextProvider,
isElement,
isForwardRef,
isFragment,
isProfiler,
isPortal,
isStrictMode,
} from './src/ReactIs';