Closed
Description
I want to use the undocumented property React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
which holds some interesting insights and can be useful in some cases.
I'm developing React libraries.
- is it safe to use in development?
for example usingReact.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current.type.displayName
I could warn the user the name of the component that consumed a custom hook without wrapping it with required context. - is it safe to use in production? for example this use case.
thank you.
Metadata
Metadata
Assignees
Labels
No labels