-
Notifications
You must be signed in to change notification settings - Fork 92
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
Dynamic class names #5
Comments
@Bartozzz that looks like expected behaviour to me? In your example screenshot, I can see the |
Yes, the Anyway, can you provide a working, tested example that's adds a class to the |
I see what you mean now. This module delegates to In the meantime it sounds like your workaround will be ok, I'm guessing (have yet to test this) you're doing something like wrapping |
Yup, that's exactly what I am doing. |
@Bartozzz this issue should be fixed if you want to try grabbing the latest version now. |
Closing, assuming the thumbs up meant things were all good? Feel free to post a new issue or reopen this one if you feel the issue isn't resolved. |
I am trying to add a class to the ReactSVG component once something happens. I am using the latest version of
react
,react-svg
,classnames
.themeIcon
is a valid string:CSS clases are not changing in the DOM once SVG is loaded:
Is there an easy way to dynamically change SVG classes or should I use
refs
and thecallback
function?The text was updated successfully, but these errors were encountered: