News for hackers. Stuff that matters.
Re:Chakra UI – Modular and accessible UI components for Reac... by crubier on Sunday June 14, 2020 @06:54AM (#23516696)
Just as an example, the code for Button in both frameworks:

==========================================

Chakra: 215 lines

https://github.com/chakra-ui/chakra-ui/blob/master/packages/...

Typical comment line in chakra is clear and useful:

"If added, the button will show an icon after the button's label"

==========================================

Material: 415 lines with a lot of boilerplate:

https://github.com/mui-org/material-ui/blob/master/packages/...

Typical comment line in material is redundant and overly specific:

Styles applied to the root element if `size="large"` and `variant="outlined"`

There are no comments on this comment yet.