Skip to content

A react component that renders image tag only if the image source is found without error.

Notifications You must be signed in to change notification settings

radi-dev/React-Img-or-alt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Img-or-alt

This react component that will render image tag only if the image source is found without error, otherwise it renders only the alt text in a

tag. This eliminates the broken image icon before the alt text.

Sample basic usage:

Usage with extra img properties:

To use this component, clone the repository or dowload and extract it to your machine. Open terminal to the folder. Run npm install.

About

A react component that renders image tag only if the image source is found without error.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published