<Links /><Links/> 组件会渲染路由模块 links 导出创建的所有 <link> 标签。你应该将其渲染到 HTML 的 <head> 组件中,通常是在 app/root.tsx 组件中。
¥The <Links/> component renders all of the <link> tags created by your route module links export. You should render it inside the <head> of your HTML, usually in app/root.tsx.
import { Links } from "@remix-run/react";
export default function Root() {
return (
<html>
<head>
<Links />
</head>
<body></body>
</html>
);
}