I was reading the source code of ant-design and noticed each component got a index.ts and index.less in the style folder. Why js is used here for managing dependencies? What's the difference if I just move it to the less file and use @import
?
只需使用较少的文件就可以设计每个组件,而无需使用模块化的较少组件,这意味着您永远不必再申请其他组件,除非:global
伪类具有“ react-app-rewire-less-modules”外观
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.