(施工中)
首先來利用npm套件管理來安裝Material-UI以及他們用來處理手機觸碰點擊事件的react-tap-event-plugin,請把終端機(如cmder)的資料夾位置移動到app裡面,依序輸入以下指令來安裝:
npm install --save material-ui
npm i --save react-tap-event-plugin
npm i 其實就是npm install,--save是會安裝的套件記錄在package.json之中。
{
"name": "my-app",
"version": "0.1.0",
"private": true,
"devDependencies": {
"react-scripts": "0.7.0"
},
"dependencies": {
"material-ui": "^0.16.4",
"react": "^15.4.1",
"react-dom": "^15.4.1",
"react-tap-event-plugin": "^2.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}