News for hackers. Stuff that matters.
Re:Boring Avatars – React library to generate custom avatars by kashug on Friday May 28, 2021 @08:58AM (#27314828)
If I create a library I would usually make it to solve my own usecase. And if you mainly work with react-apps, and your plan is to use it in an react app. Why not also make the library in react?

In this case, I guess the developer wanted to use JSX to create it. And you could ofc use JSX without React. But most people are used to using it in react-context, and plan to use it in an react-app anyway.

So to answer your question, in my eyes it would be. Why not? If the devs plan on using it in react-app anyway, it's not their job to make sure it supports everyone elses usecase.

Re:Boring Avatars – React library to generate custom avatars by NohatCoder on Friday May 28, 2021 @12:07PM (#27317120)
Why put it on GitHub and a web page if you don't care about other people's use cases?

I have no problem with people writing code for themselves. But if that is what you do, please don't post on Hacker News about it.

Re:Boring Avatars – React library to generate custom avatars by Nullabillity on Friday May 28, 2021 @03:34PM (#27319571)
It can still be useful even if it doesn't cover every single corner case.