Hacker Newsnew | past | comments | ask | show | jobs | submit | tylermcginnis's commentslogin

That old site was rough . Hopefully this one is a much better experience for you.


From what I've been able to tell, that lib is unmaintained and one of the original authors left and created this – https://github.com/react-hookz/web.

A lot of older hook libs "break the rules" of React by doing some weird stuff like silencing useEffects deps array, reading refs in render, etc. We tried to avoid that so useHooks will be future proof.



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.


Yeah it's [poor phrasing](https://twitter.com/tylermcginnis/status/1663648010558132224) on our part. How it's being interpreted vs how I thought it would be interpreted are different. We'll update it.


I don't blame you for this. The React team recently talking about "React Server Components" as though most React users are running it on NodeJS backends and introducing magic "use client" strings is putting everyone in a confused position and I don't think there's a good phrasing for you.


Something like "compatible for server-side rendering in non react server components" :)

And people suggest juniors to start on the front-end because it's less complicated...


I've read "Server component safe" and thought that doesn't make sense from the get go. It's 100% only bad communication here


That's good feedback. Thank you.


Hi everyone!

You old heads may remember the original usehooks. It was built when hooks were first released in 2019. We just rebuilt it from scratch, added about 40 more hooks, made it compliant with Server Components, and launched it as a standalone lib.

Hope you all enjoy!


Was this inspired at all by VueUse? After the windicss/tailwind and Remix/Next.js scuffles it's become clear that it's good to get acknowledgement.

Either way, I hope it's as well documented and well maintained as VueUse. That has been pretty sweet. I wanted something like it for React a few months ago and useHooks was the closest thing I found but not nearly as good. Hopefully this relaunch will be.


I've never heard of VueUse (though I'm sure it's great). The original useHooks was released in January of 2019.


Yeah, I figured useHooks was created without knowing about VueUse, but thought the useHooks maintainer(s) might have become aware of it sense then. It makes sense, because though the code is heading in the direction of VueUse in terms of being maintained and well rounded, the structure of useHooks is quite a bit different. VueUse has the code alongside the Markdown: https://github.com/vueuse/vueuse/tree/main/packages/integrat...


Are all the hooks on the site made by ui.dev?

It'd be great if each hook linked to the Github code for that hook, as the first thing I thought of was (a) what is the hook doing, and (b) is it easier to adapt my existing hook and reduce the number of dependencies I have to track?



Good feedback. Yes they're all up on Github – https://github.com/uidotdev/usehooks


I haven't tried the package yet, but at first glance it is missing the .d.ts file. Is this package type safe?


Left another main comment, however you may not see it, where is useLocalStorage implementation for example?


I see "MIT" in package.json - could you add a proper license file to the repo?



Hi everyone!

React has a beautiful programming model (for the most part). We wanted to bring it to life by creating interactive visuals that represent core React concepts. Hope you like it.


Looks nifty, well done. :)

If you're open to suggestions, please add some way to reset the animations.

eg I just pressed a play button thing, and it animated... and that's it. Can't replay it, and reloading the page doesn't work. :(

---

Ahhh, force reloading the page does. That'll do for now.

Still, if it's easy to add a reset button or similar that'd probably be useful. :)


So glad you found The Story of Async JS helpful! Appreciate the shout-out.


Thanks for your video! After I finished watching it and going to your channel's page, all I could think about was "Wow I hit jackpot".

Funnily enough "The Story of React" started playing right after, and I didn't even notice I was listening to another video.


"You can now import over 1.3 million npm modules in Deno".

Pragmatism prevails.


Excited to play around with this. Congrats Tobias, Jared, and team!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: