-
Notifications
You must be signed in to change notification settings - Fork 801
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
Doesn’t work with React.createFactory() #277
Comments
theres no need to patch React.DOM.* beause we only care about composite components right? |
Haha, excellent point! I’m being silly. |
:) also, how about patching only the internal react/lib/ReactElement? surely they all import createElement from that one no? |
We could do this. It wouldn’t work in the future though when React ships flat bundles. Also doesn’t work for people who use precompiled builds of React. (Not sure we really want to support it, but right now we do.) |
I've added the failing test case for this on #278 |
Fixed in 3.0.0-beta.2. |
The issue is explained here: #276 (comment). It seems like we’d need to monkeypatch
React.createFactory
because it bypassesReact.createElement
and uses the internalReactElement
module directly.The text was updated successfully, but these errors were encountered: