Code Snippets
These are a collection of code snippets I've used in the past and saved. These could be useful to you as well.

DarkMode Context API
It enables to add darkmode switch.

Generate TOC from Markdown
It generate the Table of Content from Markdown Content

Custom Hook in React (TypeScript)
It contains muliple custom hooks that I made in the journey.

Scroll to top Component
It generates a button that will take you at the top of window.

Setup Supabase Policies
Quick tutorial to setup the Supabase policies to manipulate the data.

Using Supabase Webhooks
It shows how to use Supabase webhooks to revalidate pages.

Textarea Auto Grow
This show how to make text are grow automatically.

Generate Formatted Date
It generate the Date like Jan 14, 2023.

Nprogress Loading
React Component for Nprogress Loading.