https://rocoderes.com/javascript-react-error-boundary-not-working-as-expected/
Javascript – React Error boundary not working as expected