1.yarn add -g create-react-appreact
2.create-react-app demoreact-router
cd demoapp
yarn start 能夠跑起來整個項目了dom
通常都會用到路由,須要 yarn add react-router-domrouter