react-fitted-image
react-fitted-image copied to clipboard
React component for image handling with object-fit
Getting this warning when using FittedImage
To detect if the browser supports object-fit property, I use CSS.supports. If the property is supported, the component render an "img" tag, else a "div". Currently, when testing,the rendered component...
When loader prop is set, the component should render first the loader, then the picture when loaded. To test this feature, I need to understand how to mock promises with...