RGRahul Garudincareerpath.hashnode.dev·May 18 · 3 min read11) Typescript Reducer and ContextReducer Typing in TypeScriptA reducer is a function that updates state based on actions.In TypeScript, we explicitly type: State, Action, Reducer functionDefine State Type type CounterState = { coun00
RGRahul Garudincareerpath.hashnode.dev·May 15 · 3 min read4) Typescript Interfaces and TypesInterfaces in TypeScriptAn interface defines the structure of an object. It is commonly used in,i) React Propsii) API response modelsiii) Class contractsiv) Reusable object structures interface User {00
RGRahul Garudincareerpath.hashnode.dev·May 15 · 2 min read3) Typescript FunctionsFunction Typing in TypeScripti) Basic Function Typing function add(a: number, b: number): number { return a + b; } console.log(add(10, 20)); ii) Arrow Function Typing const multiply = (a: number, 00
RGRahul Garudincareerpath.hashnode.dev·May 12 · 3 min read42) SSR, CSR in ReactClient-Side Rendering (CSR)In CSR: The browser downloads JavaScript first, and JavaScript generates the HTML UI in the browser. The server mainly sends: Minimal HTML CSS JavaScript bundle. Browser Req00
RGRahul Garudincareerpath.hashnode.dev·May 5 · 2 min read15) Environment Variables & ConfigConfiguration in Node.js is one of those areas that looks simple at first (“just use environment variables”), but becomes critical as your app scales, moves across environments, and handles secrets se00