I\'m seeing this. It\'s not a mystery what it is complaining about:
Warning: validateDOMnesting(...): cannot appear as a descendant of . See
The warning appears only because the demo code has:
function TabPanel(props) {
const { children, value, index, ...other } = props;
return (
{value === index && (
// <==NOTE P TAG HERE
{children}
)}
);
}
Changing it like this takes care of it:
function TabPanel(props) {
const {children, value, index, classes, ...other} = props;
return (
{value === index && (
// <== P TAG REMOVED
{children}
)}
);
}