I\'m seeing this. It\'s not a mystery what it is complaining about:
Warning: validateDOMnesting(...): cannot appear as a descendant of . See
I got this warning by using Material UI components, then I test the component="div"
as prop to the below code and everything became correct:
import Grid from '@material-ui/core/Grid';
import Typography from '@material-ui/core/Typography';
Lorem Ipsum
Actually, this warning happens because in the Material UI the default HTML tag of Grid
component is div
tag and the default Typography
HTML tag is p
tag, So now the warning happens,
Warning: validateDOMnesting(...): cannot appear as a descendant of