4 ms·
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 b
by bryanrasmussen 7y ago
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.
- Reubend 7y agoYou're absolutely right about both of these points. I don't think they provide any solution to #1, but they do include a workaround for #2, even if it's pretty dirty: https://ant.design/docs/react/customize-theme#How-to-avoid-modifying-global-styles- https://ant.design/docs/react/customize-theme#How-to-avoid-m...?