For errors that are thrown, we should catch them, log them and display a nice error message instead of white screen. Refer to docs: https://legacy.reactjs.org/docs/error-boundaries.html