第一篇——React+dva+umi


1. npm create umi

2.
? Select the boilerplate type (Use arrow keys)
ant-design-pro - Create project with an layout-only ant-design-pro boilerplate, use together with umi block.
? app - Create project with a simple boilerplate, support typescript.
block - Create a umi block.
library - Create a library with umi.
plugin - Create a umi plugin.

3.
Do you want to use typescript? (y/N) N

五:
? What functionality do you want to enable? (Press to select, to toggle all, to invert selection)
?? antd
?? dva
? code splitting
? dll

实现约定式路由
https://blog.csdn.net/qq_26705343/article/details/120512027

相关