WebDevSimplified / useful-custom-react-hooks

1.95k stars 687 forks source link

Added the first two custom hooks from "Learn Custom Hooks in 10-minutes" and renumbered #18

Closed sleeptil3 closed 3 years ago

sleeptil3 commented 3 years ago

I was doing a marathon through all of your Custom Hook videos, starting with your first one: Learn Custom Hooks in 10-minutes but when I downloaded this repo on the next video, those hooks weren't included (useLocalStorage and useUpdateLogger), and my own organizational brain wanted them all in one place, so I added them as 1- and 2- then just renumbered the rest to match and updated their imports.

Merge if you feel it might be helpful for others. I just love all my training stuff in one place and after I made the change for me, thought others might like it as well.

WebDevSimplified commented 3 years ago

I already have a useLocalStorage hook in this list of hooks. As for the useUpdateLogger, I think that is a good hook, and may add it in a future video, but I only want to add hooks to this repo covered in one of my videos linked to this repository.

sleeptil3 commented 3 years ago

Good point. I thought of that after since all the vids have numbers ones in the video. Just for me then!

Thx!