When text is dynamically added to a tab or tab panel, the mutation observer is looking for a tagName. Since text doesn't have a tagName property, it causes the mutation observer to error.

View this codesandbox to see the issue:
https://codesandbox.io/s/affectionate-snow-838pe?file=/src/App.js