Hacker News new | ask | show | jobs
by Aeolun 1465 days ago
Building a native JS library for something that I only want in React sounds like it’d bring me no benefit for a lot of extra effort.
2 comments

Yes - if you're building just for yourself, but if you're building an OSS library your _audience_ is now larger than just React one and you have potential benefit of writing a thin wrapper around it in some new framework (if React stops being _mainstream_). Writing a wrapper around it sounds better than rewriting a whole library.
If someone else has done this, you’d only have to create the react layer. That’s one of the benefits