2017-03-09 62 views
0

這裏是按鈕,陣營工具箱的按鈕不工作

enter image description here

,這裏是我點擊的按鈕。

enter image description here

我不能說的按鈕不起作用,但比較的例子,它是如此的線:

http://react-toolbox.com/#/components/button

的源代碼:

import {Button} from 'react-toolbox/lib/button'; 

...

<Button icon='add' label='Add this' flat primary /> 

在webpack.config.js裝載機:

{ 
     test: /react-toolbox\/.*.css/, 
     use: [ 
      "style-loader", 
      { 
      loader: "css-loader", 
      options: { 
       modules: true, 
       sourceMap: true, 
       importLoaders: 1, 
       localIdentName: "[name]--[local]--[hash:base64:8]" 
      } 
      }, 
      "postcss-loader" // has separate config, see postcss.config.js nearby 
     ] 
     }, 

請指教。

回答

0

包括材料圖標index.html

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">