-
Notifications
You must be signed in to change notification settings - Fork 150
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
Don't load your styles from code #13
Comments
I think it's better to include them, handles the 95% use-case / "just-works" / don't have to make users style it themselves. For the power-users, I'm not sure why |
It doesn't work because it requires me to include your css file into my build process. I agree you should have the default styling, but maybe you should work with inline styles and not a css file. |
I think the 95% use-case is / "functionality just works" / && / "matches the style of my app" /. That's why I like inline styles for react... easy to include them, easy to override them. I build a lot of enterprise level apps, and sometimes this is the only thing that keeps us from adopting, contributing to ($ even), and promoting an open source module or component. |
Happy to take a PR or see an example of how to get the same effect with inline styles. |
From the Facebook react docs: https://facebook.github.io/react/tips/inline-styles.html Also, check out Radium. The makers of Radium also have a good article and code intro on the concept. |
Right, I get the concept of inline styles in react, but what I'd like to On Tue, Jun 9, 2015 at 4:16 PM Brian Vanderbusch [email protected]
|
gotcha. I have a fairly large project I'm working on at the moment that might require me to actually do this. If we get around to it, (at the moment we had to go with fixed-data-tables), I'll send a PR. |
This is related to #12.
Because of this line, webpack loads your css even if
defaultStyles: false
. That forces me to override your default styles withimportant
:I think you shouldn't include your styles by default. Just let the "consumer" import the css from their code.
The text was updated successfully, but these errors were encountered: