Comments (4)
@vladshcherbin Can <div class=""/>
break an app?
Hyperapp's output is: <div class />
by the way.
from classcat.
@jorgebucaran I don't think it can break an app.
Returning undefined
just gives a clean html output without empty classes.
from classcat.
@vladshcherbin Return undefined
and you may also end up with "undefined my-class"
if you're concatenating Classcat's output with a string as someone already pointed out in the classNames PR.
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! 👋
from classcat.
@jorgebucaran sure, thanks :)
from classcat.
Related Issues (20)
- Bad class names order on server side rendering HOT 6
- readme suggestion: unary function HOT 2
- Fix CodePen Example HOT 1
- When all child elements are `false` the object key is still included HOT 15
- Remove support for nested objects. HOT 9
- Classes order causing issue HOT 4
- imported could not be resolved HOT 7
- Don't publish the benchmark HOT 4
- Running benchmarks locally requires build HOT 1
- What's the difference between Classcat and classNames?
- Bundling error with 3.1.1 HOT 5
- Export CommonJS module HOT 6
- Benchmark is kinda unfair HOT 3
- "class" in example rather than "className" (jsx reserved) HOT 1
- Better support for CSS Modules HOT 2
- v5 not working with create-react-app HOT 3
- Add babel-plugin-optimize-clsx to Readme HOT 1
- BUG: Incorrect typings due to missing supported types HOT 4
- Numbers as CSS classes? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from classcat.