Code Snippets

A colection of useful snippets that I have saved for ease of use. They range from CSS/styling to library snippets and hooks. Please feel free to use these in your code! You can filter by category or use the search to filter by keyword.

All Snippets

Click Outside Hook

Detect clicks outside of DOM element.

Window Size Hook

Detect window resize event.

Mount Hook

Check if component is mounted