DavidHDev / react-haiku

A clean & lightweight collection of React Hooks & Utilities!
https://reacthaiku.dev/
Other
250 stars 54 forks source link

Created an utility component that simplifies the process of rendering images #40

Closed Giovym closed 1 year ago

Giovym commented 1 year ago

Created the Image utility component with the following criteria:

✅ The component should accept the image source URL as a prop and render the corresponding image. ✅ It should handle lazy loading of images to improve performance. ✅ Provide optional props to specify alt text, fallback images, and other image-related attributes.

DavidHDev commented 1 year ago

@Giovym please also edit the index.js and index.d.ts files with the required changes for this feature.