4 ms·
Just as an example, the code for Button in both frameworks: ========================================== Chakra: 215 lines https://github.com/chakra-ui/chakra-
by crubier 6y ago
Just as an example, the code for Button in both frameworks:
==========================================
Chakra: 215 lines
https://github.com/chakra-ui/chakra-ui/blob/master/packages/button/src/button.tsx 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/material-ui/src/Button/Button.js 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"`