Image loading in react is Error-Prone
and has no fallback by default. This issue can be solved using Error Boundaries
.
However, the one solution is to use an existing library and in this lesson, we are going to look at react-graceful-image
and the Image
component it provides.