Snippets

Short solutions to discrete problems which can be copied and pasted.

Show/Hide Password Toggle

Show/Hide Password Toggle

Renders a password input field with a reveal button.

Category: React Component
Last Updated:
useForm Hook

useForm Hook

Creates a stateful value from the fields in a form.

Category: React Hook
Last Updated:
useDebounce Hook

useDebounce Hook

Debounces the given value.

Category: React Hook
Last Updated:
useSessionStorage Hook

useSessionStorage Hook

Creates a stateful value that is persisted to sessionStorage, and a function to update it.

Category: React Hook
Last Updated:
useLocalStorage Hook

useLocalStorage Hook

Creates a stateful value that is persisted to localStorage, and a function to update it.

Category: React Hook
Last Updated:
useFetch Hook

useFetch Hook

Implements fetch() in a declarative manner.

Category: React Hook
Last Updated: