5 ms·
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 n
by kashug 5y ago
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.
- NohatCoder 5y agoWhy 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.
- Nullabillity 5y agoIt can still be useful even if it doesn't cover every single corner case.