Hacker News new | past | comments | ask | show | jobs | submit login

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/compone...

https://github.com/ant-design/ant-design/blob/master/compone...

Resulting in: https://ant.design/components/button/




It'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>


"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.


I do not understand the problem with vanilla HTML and JavaScript. I've been doing it for 18 years so I might be "blind".




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: