参考文档 ↗
渲染由路由模块的 links 导出创建的所有 <link> 标签。您应该在文档的 <head> 中渲染它。
links
<link>
<head>
import { Links } from "react-router"; export default function Root() { return ( <html> <head> <Links /> </head> <body></body> </html> ); }
function Links({ nonce }: LinksProps): React.JSX.Element
一个 nonce 属性,用于在 <link> 元素上渲染。
nonce