-
Notifications
You must be signed in to change notification settings - Fork 10
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
Convenience functions #10
Comments
Neat, this idea is worth testing! |
I think this problem got a bit less painful after use-style started accepting HTML attributes as the second parameter. |
Agreed, and further convenience wrappers can be provided by wrapping the component in an HOC that does a lot of the hard work for you, e.g.
Disclaimer: |
Currently combining style information with other attributes seems quite verbose, like:
A more convenient shorthand would be nice (though I don't yet know what would be the best).
Perhaps defining a pre-styled element, like:
This can obviously be done separately without adding it to stylefy, but I think a recommended way would be nice.
The text was updated successfully, but these errors were encountered: