Snippets.

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

NameDescriptionCategoryLast Updated
FadeIn
Fade stuff in on mount with this helpful utility component.
React Component
May 2020
random
Generate a random number in a range. The way we all wish Math.random worked.
Javascript
May 2020
HTML Skeleton
Bootstrap your next project with this batteries-included HTML starter.
HTML & CSS
May 2020
range
Generate an array of numbers, for happy iteration
Javascript
May 2020
useHasMounted
Avoid weird SSR issues with this handy React hook. Know whether you're rendering on the client or server!
React Hook
May 2020
useInterval
A React-friendly alternative to window.setInterval
React Hook
May 2020
Scale with Pseudo-elements
A buttery hover effect that doesn't warp or distort your content
HTML & CSS
May 2020
usePrefersReducedMotion
Use animations responsibly! Guard against unintended consequences with this accessible React hook.
React Hook
May 2020
useToggle
Handy syntactic sugar around React.useState, for toggling a boolean value on and off.
React Hook
May 2020
useRandomInterval
It's like setInterval, but more random!
React Hook
May 2020