Articles: JavaScript
Articles and code samples in JavaScript: design patterns, architecture and guides with working code.
- TypeScript for React and Node developers – from types to a type-safe API Tutorial · 26 min read
A hands-on TypeScript 7 guide built around one project – a dumpling shop's order dashboard in React plus a Node script. Types vs interfaces, discriminated unions, narrowing, generics, utility types, a strict tsconfig and validating API…
- Tailwind CSS v4 in React and Vite – tokens in @theme, variants with cva, dark mode and accessibility Tutorial · 18 min read
We set up Tailwind CSS v4 in a React + Vite app and build a small component set for a dumpling shop – design tokens in @theme, semantic tokens for dark mode, buttons with variants (cva + tailwind-merge), accessible form fields and a…
- Login and registration in React – forms, tokens, protected routes and session refresh Tutorial · 31 min read
A complete authentication frontend in React 19 – login and registration forms with validation, an access token in memory and a refresh token in an httpOnly cookie, session restore, protected routes, retrying requests after a 401, password…
- Modern React 19 in practice – hooks, TanStack Query, forms and routing Tutorial · 25 min read
We build a complete ordering app for a dumpling shop in React 19 – components, hooks (state, effects, memo, ref, context), data fetching with TanStack Query, a form with react-hook-form and Zod, routing with React Router 8, project…
- MUI 7 in practice – theming, dark mode, custom components and DataGrid without the "default Material" look Tutorial · 23 min read
We build a dumpling shop's kitchen dashboard in Material UI 7 – design tokens and a CSS-variables theme, flicker-free dark mode, custom components and variants, client- and server-side DataGrid, and a form with react-hook-form and Zod.…
- Pins on Google Maps – markers, clusters and info windows Tutorial · 22 min read
A practical guide to pins in Google Maps and React – Pin variants per status, custom HTML markers, info windows, custom-styled clusters, levels of detail, syncing a list with the map viewport and performance with 1,500 points.
- Google Maps in React – API key, Map ID, geolocation, place search, pins and cost control Tutorial · 27 min read
A complete Google Maps integration for a React app with the official @vis.gl/react-google-maps library – from a restricted API key and a Map ID, through geolocation, address autocomplete (Places API New) and geocoding, to AdvancedMarker…
- AI in Node.js and TypeScript: the Anthropic SDK, Vercel AI SDK and LangChain.js in practice Article · 13 min read
A map of the AI ecosystem for Node.js – when the provider SDK is enough, when to use the Vercel AI SDK and when LangChain.js – plus streaming to the browser, tools, agents and structured data with Zod, with production notes.