News for hackers. Stuff that matters.
Re:Show HN: An Almost Ideal React Image Component by samhunta on Friday June 01, 2018 @08:51PM (#17211871)
This is a great start. Some lightweight features that would make this even more ideal (for me) would be:

- retina/3x support - support for styled components extend feature (if can be made a lightweight implementation) - maybe default max width of 100% on mobile? - optional ability to overlay an empty full size block so the image cant easily be right clicked and saved

Re:Show HN: An Almost Ideal React Image Component by stereobooster on Saturday June 02, 2018 @12:31AM (#17212716)
It supports retina/3x. Provide big enough image and it will use it. It takes into account `devicePixelRatio`

> maybe default max width of 100% on mobile?

It is.

> optional ability to overlay an empty full size block so the image cant easily be right clicked and saved

Not sure what you mean, but as soon as image loaded it turns into good old image, so you can do right click

Re:Show HN: An Almost Ideal React Image Component by anonfunction on Saturday June 02, 2018 @03:55AM (#17213374)
>> optional ability to overlay an empty full size block so the image cant easily be right clicked and saved

> Not sure what you mean, but as soon as image loaded it turns into good old image, so you can do right click

I believe he wants the opposite of that, putting a div over the image so it cannot be right clicked and saved.