react-images
react-images copied to clipboard
Error handling
Steps to reproduce the behavior: Try to show a file that does not exist. Expected behavior: Show custom component to user, so to properly notify him/her of the error. Actual behavior: Shows only an empty image. No errors messages on the screen nor in console.
I could not find any method for error handling, particularly in case of any file load error. Ideally one should be able to show a component notifying the user.
As an example see react-pdf