(React+TypeScript實戰篇)一.項目構建

一.項目創建(搭建帶有typescript的) 1.安裝命令 >npx create-react-app ts-with-react --typescript 2.npx是什麼(優點,npm5.2版本以上有)? 1)避免安裝全局模塊 2)調用項目安裝的內部模塊 3.啓動項目 >cnpm start   二.體驗組件 1.在項目src目錄下創建components目錄然後新建Hello.tsx 2.
相關文章
相關標籤/搜索