Skip to content

Expose ReactCompositeComponentBase via React.__internals #843

Closed
@insin

Description

@insin

Objects created with functions returned by React.createClass() are instanceof ReactCompositeComponentBase, but this constructor isn't exposed to end-users.

Adding it to React.__internals would enable this check for anyone who needs it.

Use case: creating a version of creationix/dombuilder which uses React.DOM functions instead of document.createElement() and need to detect objects which should be left as-is for React to deal with.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions