-
Notifications
You must be signed in to change notification settings - Fork 32
Cannot use style.css_class_name
syntax directly with React 15.3.1
#56
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
Comments
Yeah, it appears the returned styles aren't satisfying You could also do typeof styles.css_class_name; // object
var classes = styles.getClassNames();
typeof classes.css_class_name // string Or I might be able to use the |
@avesus, are you using react-router-active-component by any chance? That library is enforcing the However, this is unique to that particular library. React does not require |
@scott113341 thanks a lot! I have that problems mostly with that component. |
Formalized this here: #62 |
Have to type
style.css_class_name + ''
all the time...I understand that that's some kind of React's limitations, because the object generated from
csjs
string hastoString()
method and should be treated by React as real string too.What I doing wrong because I can't find the same issues from other people?
The text was updated successfully, but these errors were encountered: