-
Notifications
You must be signed in to change notification settings - Fork 22
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
React generates empty classnames in DOM if value is an empty string #30
Comments
@vladshcherbin Can Hyperapp's output is: |
@jorgebucaran I don't think it can break an app. Returning |
@vladshcherbin Return React, Hyperapp should solve this, not Classcat. I want a clean DOM too, but changing Classcat to monkey-patch a JavaScript framework is worse. I'll fix this in Hyperapp in jorgebucaran/hyperapp#754. Thanks! 👋 |
@jorgebucaran sure, thanks :) |
Same as JedWatson/classnames#182
In react, if the value passed to
className
is an empty string, the html output will be<div class=""/>
. In order to have a clean<div />
,undefined
should be passed.Any idea how this can be solved? There is a PR in
classnames
, what do you think about this inclasscat
? :)The text was updated successfully, but these errors were encountered: