You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a reason you'd not want this? It seems to me that since you've imported the values into your CSS file, you might want them in the JS file too, no?
The only reason is that there is no difference between my class names and variables in this object.
I'm doing some dynamic classNames matching depending on my props and was seeing that my elements got additional classNames (mobile and display). This could probably be fixed in the matching function but I was wondering if this is how it suppose to work.
Activity
joeybaker commentedon Nov 30, 2016
Is there a reason you'd not want this? It seems to me that since you've imported the values into your CSS file, you might want them in the JS file too, no?
okonet commentedon Nov 30, 2016
The only reason is that there is no difference between my class names and variables in this object.
I'm doing some dynamic classNames matching depending on my props and was seeing that my elements got additional classNames (
mobileanddisplay). This could probably be fixed in the matching function but I was wondering if this is how it suppose to work.