使用material-ui未显示

#1

App.js

import React from 'react';
import AppBar from 'material-ui/AppBar';

const AppBarExampleIcon = () => (
  <AppBar
    title="Title"
    iconClassNameRight="muidocs-icon-navigation-expand-more"
  />
);

export default AppBarExampleIcon;

index.js

import React from 'react';
import { render } from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();

import AppBarExampleIcon from './App';

render(<AppBarExampleIcon />, document.getElementById('root'));
#2

你试一下加上
import ReactDOM from ‘react-dom’;

然后把render(, document.getElementById(‘root’));
改成ReactDOM.render(, document.getElementById(‘root’));

好使吗?

#3

是因为缺少了 material-ui的主题包

#4

请问一下怎么加一下那个主题包呢

#5

MuiThemeProvider 外面套多这个