Code Snippets

These are a collection of code snippets I've used in the past and saved. They could be React hooks, some random scripts to anything like random CSS snippets as well!!.

Merge React refs

views
Aug 02 2021

Apply multiple ref's to single DOM element

useViewportSize

views
Aug 02 2021

A custom hook to determine the viewport size