4 points | by owenbick 11 days ago
4 comments
Up there with leftpad as a library you probably don't need. https://qz.com/646467/how-one-programmer-broke-the-internet-...
What's the advantage of this over sth like
const Placeholder = ({background = "gray", width = "100%", height = "200px", text}) => (<div style={{background, width, height, display: "flex"}}>
Would never install a package for this, and for local dev, there are more than enough other placeholder services left that allow hotlinking.
If it's fun to build, cool, but I would never recommend anyone to add dependencies for things like this.
[dead]
Up there with leftpad as a library you probably don't need. https://qz.com/646467/how-one-programmer-broke-the-internet-...
What's the advantage of this over sth like
<span style={{margin: "auto"}}>{text ?? `${width} x ${height}`}</span> </div>)Would never install a package for this, and for local dev, there are more than enough other placeholder services left that allow hotlinking.
If it's fun to build, cool, but I would never recommend anyone to add dependencies for things like this.
[dead]
[dead]