学习React之后跟着尚硅谷教程写的一个后台管理系统。但是不同的是我用了TypeScript + React。后面尝试了React Hooks + Typescript个人感觉这样比较好用。单单Class组件结合ts会麻烦许多。
后端项目地址:react-admin-server
由于云服务器到期(3月14号正式到期),本人也没有多余的钱去购买新的服务器,因此暂停提供线上服务 大家可以自己尝试本地部署。
项目使用 create-react-app my-app --typescript创建。
- 首页
- 导航菜单
- 侧边栏
- 用户管理
- 商品管理
- 图形图表
经过该项目之后基本了解了TS和React结合之后的用法。全程参考了**TypeScript-React-Starter**里面关于TS和React的用法。
最后大家有更好关于TS和React结合的用法可以一起交流!