Event-Driven: Clean Decoupling with Publishers & Listeners in Spring BootThe Spring event system lets different parts of your application talk to each other without being directly connected. Think of it like a radio station (publisher) and radios (listeners) — the station May 20, 2026·3 min read
Controlled vs Uncontrolled components in reactControlled Component A controlled component is a form element whose value is managed by React state. The input value is passed via the value prop, and updates happen through an onChange handler. Uncontrolled Component An uncontrolled component is ...Feb 17, 2026·1 min read
Create moving border for a button using mask<button class="transform-border"> Subscribe Me </button> .transform-border { position: relative; padding: 14px 32px; font-size: 18px; color: white; background: #1a1a1a; border-radius: 14px; z-index: 0; } .transform-b...Jan 19, 2026·2 min read
How to connect to two different git hub accounts from single machine?The best method depends on whether you use HTTPS or SSH. Below are the clean, safe, and commonly used approach. Use SSH (Recommended) This is the most reliable way for multiple GitHub accounts. Step 1: Generate two SSH keys ref: https://docs.github....Dec 31, 2025·2 min read
Understanding target and module in TypeScript and ViteWhen working with TypeScript + Vite, you may come across these settings: In tsconfig.json: target and module In vite.config.ts: build.target But what do they actually mean, and how do they affect your project? Let’s break it down. 1. tsconfig.js...Nov 30, 2025·3 min read
Understanding /// <reference types="vite/client" /> in Vite + TypeScriptIf you’re building a Vite + TypeScript project, you may have seen this line in some projects: /// <reference types="vite/client" /> OR using below in tsconfig.ts "types": ["vite/client"] You might wonder: “What is this? Do I really need it?” Le...Nov 30, 2025·2 min read
Optimizing Vite Builds With Custom Rollup Output & Vendor Chunk SplittingModern frontend apps grow quickly — and so do their JavaScript bundles. As your app expands, build optimization becomes essential for faster page loads, efficient caching, and smooth user experience.Fortunately, Vite + Rollup provides powerful contro...Nov 30, 2025·3 min read