React Error Handling Best Practice