News for hackers. Stuff that matters.
Re:Show HN: An Almost Ideal React Image Component by matthberg on Friday June 01, 2018 @07:25PM (#17211406)
It would be cool to optionally integrate SVG placeholders, a-la: https://medium.com/@jmperezperez/using-svg-as-placeholders-m...

(previously discussed: https://news.ycombinator.com/item?id=15696596)

Re:Show HN: An Almost Ideal React Image Component by stereobooster on Saturday June 02, 2018 @12:27AM (#17212703)
It supports SVG placeholders. SVGs need to be converted to data URIs, like `data:image/svg+xml,%3csvg xmlns='...`, and it works the same as LQIP. You can use https://github.com/stereobooster/sqip.macro to generate those
Re:Show HN: An Almost Ideal React Image Component by crooked-v on Friday June 01, 2018 @09:05PM (#17211951)
That seems like it would require a compile step with a file loader, which is generally doable but means you need handling for (for example) Webpack vs. Parcel vs. whatever else.