# react + ts **Repository Path**: yngdys/react---ts ## Basic Information - **Project Name**: react + ts - **Description**: react + ts 的项目 - **Primary Language**: TypeScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-11-11 - **Last Updated**: 2021-11-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## npm install 下载依赖包 ## npm dev 运行项目 ## src 目录介绍 api 接口 assets 资源 components 组件 layouts 布局 router 路由 store redux style 样式 utils 工具 views 业务目录 ## paths.json 文件路径别名 直接在tsconfig.json里面添加paths不起作用,需要这样设置 ## 依赖包 nanoid 生成唯一id import { nanoid } from 'nanoid' const id:string = nanoid()