【发布时间】:2022-12-30 00:02:35
【问题描述】:
是否有将 ant 与 remix 一起使用的正确方法?
使用 antd (ant.design) 版本 5。尝试将以下内容添加到 remix 项目中的 root.tsx(以及路由文件)文件中,但样式仍然不起作用:
import styles from "antd/dist/reset.css";
export function links() {
return [
{
rel: "stylesheet",
href: styles,
}
]
}
【问题讨论】: