Curious about the background image component - is there any reason you didn't use an img element with srcset for this functionality?
In this case, there were two reasons. Firstly, I animate the transition from one image to the other. Secondly, I wanted to use the image as a background image (and therefore leverage background-size: cover).
Also, I didn’t think of the srcset prop, to be honest 🙈
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.