Take advantage of error boundaries to display errors to the user
https://reactjs.org/docs/error-boundaries.html
This should help to debug and help users to report bugs, instead of asking the user to go to the console of the browser.
Edited by Antoine