(三)React+.Net+Typescript全栈(动态Router/Redux/RTK Query获取后端素材)



项目地址

  • 教程作者:
  • 教程地址:
  • 代码仓库地址:
  • 所用到的框架和插件:
dbt
airflow

一、Router

在这里插入图片描述

1.1 创建Router

1. 页面

  • 伪页面
    在这里插入图片描述

2. 创建路由

Router.txs里创建路由规则
在这里插入图片描述

3. Outlet子路由使用

1. 基本使用
  • 在App.txs里直接使用
    在这里插入图片描述
2. 嵌套使用
  • 如果在子路由里还有其他的子路由
  • 例如
{

path: "/dashboard",
element: <DashboardLayout />
  ,
  children: [
  {
   path: "profile", element: <ProfilePage />
    },
    {
     path: "settings", element:</
posted @ 2025-09-24 18:23  yfceshi  阅读(5)  评论(0)    收藏  举报