React material-ui tooltip error

Does this look familiar?

Invalid prop children of type array supplied to ForwardRef(Tooltip), expected a single ReactElement.

If yes, make sure you don´t have any non-essential spaces between the opening and closing Tooltip tags (<Tooltip title="My Tooltip"> Test </Tooltip> will raise that error, <Tooltip title="My Tooltip">Test</Tooltip> won´t).

Let me know if it helped you



Leave a Reply