链接
本页内容

链接

摘要

参考文档 ↗

渲染由路由模块的 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

一个 nonce 属性,用于在 <link> 元素上渲染。

文档和示例 CC 4.0
编辑