4 ms·
It's actually super light, i don't know where you got the impression that it's heavy. This is not a monolith but a modular kit - you only load what you use whic
by mlsarecmg 10y ago
It's actually super light, i don't know where you got the impression that it's heavy. This is not a monolith but a modular kit - you only load what you use which makes it different from many other UI kits which give you megabytes of CSS on first load.
Also, this is native HTML and CSS of course, with proper definition, types and handlers laying out what the component can do:
https://github.com/ant-design/ant-design/blob/master/components/button/button.tsx https://github.com/ant-design/ant-design/blob/master/compone...
https://github.com/ant-design/ant-design/blob/master/components/button/style/index.less https://github.com/ant-design/ant-design/blob/master/compone...
Resulting in: https://ant.design/components/button/ https://ant.design/components/button/
- z3t4 10y agoIt's a weak abstraction with maybe hundreds of nested dependencies and many compile steps. A lot of things that can go wrong ... Just to do this: <button>Hello world</button>
- mlsarecmg 10y ago"Just" To "just" use self contained, configurable, property-defined components that can be shared, re-used, filled with state - that isn't trivial. Which is why they're React components. The components themselves are very lean, there's a bit of code, some markup, a piece of CSS and that's that. The code i have linked compiles down to a couple of bytes.
- z3t4 10y agoI do not understand the problem with vanilla HTML and JavaScript. I've been doing it for 18 years so I might be "blind".