usehooks.ts
React hook library, ready to use, written in Typescript.
This is the repository for usehooks.ts, a Gatsby powered blog hosted with Github & netlify that publishes easy to understand React Hook code snippets.
UseHooks.ts has been strongly inspired by usehooks.com, thanks to him. My objective here is to publish my hooks in Typescript in order to find them quickly
If you'd like to submit new post ideas, improve existing posts, or change anything about the website feel free to submit an issue or pull-request.
? Summary
- useBoolean
- useCopyToClipboard
- useCounter
- useDarkMode
- useDebounce
- useElementSize
- useEventListener
- useFetch
- useHover
- useImageOnLoad
- useIntersectionObserver
- useInterval
- useIsClient
- useIsMounted
- useLocalStorage
- useLockedBody
- useOnClickOutside
- useReadLocalStorage
- useScreen
- useScript
- useSiteMetadata
- useSsr
- useTimeout
- useWindowSize
? Installation
Note: The project use Node@14
and npm@6
.
Others scripts
See more in package.json.
? Made with
React - Typescript - Gatsby - Material-ui - Jest - @testing-library - Mdx - Prism - Dracula colors
? Roadmap
- [ ] Add new hooks
- [ ] Set up automated tests for hooks
- [ ] Add a live preview system to interact with hooks