快速開始react項目

1、運行環境要在node下。 2、全局安裝create-react-app   npm install -g create-react-app 3、create-react-app myapp           /* 使用命令創建應用,myapp爲項目名稱 */ 4、npm start      /*啓動項目*/ 5、會看到瀏覽器打開:http://localhost:3000/     提示!
相關文章
相關標籤/搜索