-
Notifications
You must be signed in to change notification settings - Fork 144
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
withStyles removes all component attributes #66
Comments
You can call child component methods from parent like so: kriasoft/react-starter-kit#909 (comment) |
what about non-static values? I'm trying to create an uncontrolled input, but withStyle makes |
The same as in example above, just use |
https://github.com/thebigredgeek/isomorph-style-loader < There is an active fork here with the latest round of changes, including |
When I wrap my components with
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/38374870-withstyles-removes-all-component-attributes?utm_campaign=plugin&utm_content=tracker%2F26439769&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F26439769&utm_medium=issues&utm_source=github).withStyles
, the function essentially creates a fresh class, so all previously defined class attributes, such as static method or component functions are gone. The workaround I have so far is to manually add the attributes.The text was updated successfully, but these errors were encountered: