-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Add defineClass to addons #443
Conversation
@zpao asked me to motivate this pull request so here we go:
|
Gonna close this. This is more of a proof-of-concept than an actual pull request, and if I end up wanting this API I'll just implement in downstream. 💪 But, looking through the source, you guys could do with a solution to all the method wrapping that you're doing for testing/performance :P |
Warning: lot of code!
This pull request adds a
defineClass
method to addons similar to Twitter Flight'sdefineComponent
. See the tests for usage examples. I've tried to keep changes to core files to a minimum, and have only exposed/extracted some parts ofReactCompositeComponent
to prevent duplicated code.