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 { R
classes
styles
constant, then you might want to do this styles(/*your theme name/*).root
const { classes } = props;
doing this is assigning classes=undefined
then when you are trying to access classes.root
it it throwing the error.
Now, you can either change this
TO
// Because the theme argument is never used in the function
OR change this line in Charity component
{ }
TO
{}
given styles
- 热议问题