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

Proposal: Add static WrappedComponent to allow access to the original component #2

Open
jshthornton opened this issue Aug 26, 2016 · 0 comments

Comments

@jshthornton
Copy link

This will allow a developer to access the original component which might be important if that component itself exposes a wrapped component.

For example, take redux-form. When wrapping a stateless component with redux-form you can access it via MyForm.WrappedComponent, rather than having to export it yourself. When writing a story it would be good to be able to just render the stateless form without having to export it separately or putting it in a separate file.

I can put it into a pull request if you agree with the concept?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant