handle

handle

导出句柄允许你使用以下方式创建应用约定 useMatches 钩子。你可以为其输入任何你想要的值:

¥Exporting a handle allows you to create application conventions with the useMatches hook. You can put whatever values you want on it:

export const handle = {
  its: "all yours",
};

这几乎总是与 useMatches 结合使用。要了解你可以使用它做什么,请参阅 useMatches 了解更多信息。

¥This is almost always used in conjunction with useMatches. To see what kinds of things you can do with it, refer to useMatches for more information.

其他资源

¥Additional Resources

Remix v2.17 中文网 - 粤ICP备13048890号