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
classesstyles constant, then you might want to do this styles(/*your theme name/*).rootconst { 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
- 热议问题