TypeError: Cannot read property 'root' of undefined
问题 I'm trying to put a BasicTable function from Material-Ui to my React.js file. Here is my code. import React, { Component } from 'react'; import { Route, Redirect, Switch, Link, HashRouter} from 'react-router-dom'; import firebase, { auth, provider } from '../firebase.js'; import '../App.css'; // Material-ui theme import NavBar from '../profile_pages/navBar'; //For Table Material-ui import classNames from 'classnames'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui