Jatin Sharma
homeaboutstatsutilitiesblogsbookscertificatesprojects
snippets
Snippets — 001

Code Snippets

A collection of reusable code snippets I've saved over time. 9 snippets available.

React
React

Textarea Auto Grow

This show how to make text are grow automatically.

Supabase
Supabase

Using Supabase Webhooks

It shows how to use Supabase webhooks to revalidate pages.

Supabase
Supabase

Setup Supabase Policies

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

React
React

Scroll to top Component

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

TypeScript
TypeScript

Custom Hook in React (TypeScript)

It contains multiple custom hooks that I made in the journey.

React
React

Nprogress Loading

React Component for Nprogress Loading.

TypeScript
TypeScript

Generate TOC from Markdown

It generate the Table of Content from Markdown Content

JavaScript
JavaScript

Generate Formatted Date

It generate the Date like Jan 14, 2023.

React
React

DarkMode Context API

It enables to add dark mode switch.

Jatin Sharma

Full-stack developer passionate about creating beautiful and functional web experiences.

Visitors
—
Now Playing

Not Playing

Spotify

Navigation
home→about→stats→utilities→blogs→
More
books→certificates→projects→snippets→epigraphs→privacy→newsletter→RSS→
Connect
Twitter↗LinkedIn↗Github↗Instagram↗Dev.to↗
© 2026 Jatin Sharma·Built with Next.js & Vercel