The Repository
Essays, code snippets, prototypes, and more resources to help you developing delightful web applications. When I was building this repository, I asked myself “What made me learn the best, and fastest?”, and I realized... Learning is so much easier once you know what to learn.
Snippets
useCopyToClipboard
Copy text to the clipboard with feedback state and toast notifications.
useRemoteTrigger
Unifies controlled and uncontrolled open state for flexible component control.
useSyncedState
useState that updates to the new value when the initial state changes.
useHasMounted
Detect mounting on client-side to avoid hydration edge-cases.