Hacker News new | ask | show | jobs
by sattoshi 1115 days ago
I don’t understand why this should be distributed as a package of many hooks.

Unless if a hook is unusually complicated, I much rather copy-paste it into my code.

You should really share the implementations of each of them on the website. I don’t want to pull in 100 hooks just because I don’t want to write 1 from scratch.

3 comments

I understand the source is available. I’m saying I would enjoy seeing the source on the website as I browse it. Much easier to search up on Google that way.
You realize that is a website you can browse. Having it on another domain doesn't make your search easier on google.
Actually, the repository has an MIT license. You can't copy/paste them without also including the license file.
I think that boat has sailed with javascript. I don't understand why leftpad is a module but much of the community disagrees with me on that.
I like how TailwindUI does it. Provides nice examples/source code and easy to copy/paste