Ionic react dynamic tabs

It seems in Ionic React the Tabs are bound to dom events. When we’re dynamically trying to add remove tabs from Ionic react app, we get an error.
Does anyone has any solutions for this ?

Looks like there’s an error with your tabs in the app.tsx file. Can you post the code from that file?