#React

5 items tagged “React

SnippetsNext.js3 min read

Auth Context for Next.js (Cookie-Based Sessions)

A React context wrapping an API — login, logout, signup, and password reset — that keeps the client in sync with an httpOnly session cookie by revalidating on mount.

#React
SnippetsReact1 min read

useDebounce hook

A small generic hook for debouncing a fast-changing value — search inputs, resize handlers, anything you don't want firing on every keystroke.

#React
NotesNext.js2 min read

A mental model for Server vs Client Components

The rule of thumb I actually use when deciding whether a component needs 'use client', and how a Server Component parent can still pass data down to it.

#Next.js
ProjectsBusiness Software2 min read

Pasal Business Management Platform

Internal business applications developed for inventory management, appointment systems, and daily operational workflows.

#React
ProjectsHealthcare Software2 min read

Clinical Management System — Karuna Hospital

A hospital management system built to digitize patient records, appointments, reports, and clinical workflows.

#PHP
© 2026 Sabin Shrestha