react 腳手架--create-react-app

1.yarn add -g create-react-appreact

2.create-react-app demoreact-router

cd demoapp

yarn start 能夠跑起來整個項目了dom

 

通常都會用到路由,須要 yarn add react-router-domrouter

相關文章
相關標籤/搜索