https://www.somethingsblog.com/2024/10/19/catch-and-handle-javascript-errors-in-react-apps/