4 ms·
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 co
by sattoshi 3y 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.
- tylermcginnis 3y agoCopy/pasting is fine. You do you. https://github.com/uidotdev/usehooks/blob/main/index.js https://github.com/uidotdev/usehooks/blob/main/index.js
- sattoshi 3y agoI 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.
- ipaddr 3y agoYou realize that is a website you can browse. Having it on another domain doesn't make your search easier on google.
- zdragnar 3y agoActually, the repository has an MIT license. You can't copy/paste them without also including the license file.
- technion 3y agoI 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.
- jackhsu 3y agoI like how TailwindUI does it. Provides nice examples/source code and easy to copy/paste