funstack-router-knowledge

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

FUNSTACK Router Knowledge

FUNSTACK Router 相关知识

FUNSTACK Router (
@funstack/router
) is a modern React router built on the Navigation API (not the History API). It uses the URLPattern API for path matching.
FUNSTACK Router
@funstack/router
)是一款基于Navigation API(而非History API)构建的现代化React路由。它使用URLPattern API进行路径匹配。

Entrypoints

入口点

  • @funstack/router
    — Main entrypoint. Provides
    Router
    ,
    Outlet
    , hooks (
    useNavigate
    ,
    useRouteParams
    , etc.), and route definition utilities (
    route()
    ,
    routeState()
    ).
  • @funstack/router/server
    — Entrypoint for Server context when you are using React Server Components. Provides
    route()
    and
    routeState()
    utilities for defining routes in server modules.
  • @funstack/router
    —— 主入口点。提供
    Router
    Outlet
    、钩子函数(
    useNavigate
    useRouteParams
    等)以及路由定义工具(
    route()
    routeState()
    )。
  • @funstack/router/server
    —— 当你使用React Server Components时,用于服务端上下文的入口点。提供
    route()
    routeState()
    工具,用于在服务端模块中定义路由。

FUNSTACK Router Docs

FUNSTACK Router 文档

More detailed documentation (including API references and best practices) can be found at:
node_modules/@funstack/router/dist/docs/index.md
更详细的文档(包括API参考和最佳实践)可在以下路径找到:
node_modules/@funstack/router/dist/docs/index.md