It's got some downsides (or maybe not I could be wrong on these parts) from what I've seen:
1. if you want the antd style for a particular component I do not believe you can import a css file specific to just that component. you are importing the full Antd css. it's sort of big. If anyone knows how I can import just the css for a component please show me how.
2. the Antd css has a lot of rules that address generic html elements, i.e. not antd classnames only. This makes component reuse more difficult.
8 comments
[ 6.9 ms ] story [ 32.0 ms ] threadMedium, 2018: https://news.ycombinator.com/item?id=16684513
Large, 2016: https://news.ycombinator.com/item?id=13053137
Related from 2019: https://news.ycombinator.com/item?id=18758697
1. if you want the antd style for a particular component I do not believe you can import a css file specific to just that component. you are importing the full Antd css. it's sort of big. If anyone knows how I can import just the css for a component please show me how.
2. the Antd css has a lot of rules that address generic html elements, i.e. not antd classnames only. This makes component reuse more difficult.