Frontend
The part of the app people see: React, Vite, Tailwind and shadcn/ui, the browser errors that break it, and making it fast, installable and pleasant on a phone.
99 posts · page 1 of 4
What Is v0? Vercel's AI App Builder Explained
v0 is Vercel's AI app builder: describe a UI or an app and it generates a real Next.js project with React, Tailwind and shadcn/ui, with a live preview and one-click publishing to Vercel. What it's good at, how it differs from Lovable and Bolt, and what to know before shipping.
Unexpected End of JSON Input: Causes and Fixes
"SyntaxError: Unexpected end of JSON input" means you tried to parse JSON from an empty or cut-off string — most often calling response.json() on an empty response like a 204 or an error. How to find the real response, handle empty bodies safely, and fix the server side.
TypeScript satisfies Explained: Check a Type Without Losing Precision
The satisfies operator checks that a value matches a type while keeping the value's own, more specific type. How it differs from a type annotation and from as, the patterns where it shines (config objects, route maps, as const), and the mistakes to avoid.
TypeScript Enums vs Union Types: Which Should You Use?
TypeScript enums generate runtime code and have surprising behaviour; string literal unions and as const objects give the same safety with plain JavaScript. How each works, why erasableSyntaxOnly and Node's built-in type stripping reject enums, and a practical rule for choosing.
TypeScript 7 Is Out: The Go-Native Compiler and What It Means for Your Project
TypeScript 7.0, released on 8 July 2026, replaces the JavaScript-based compiler with a native port written in Go that is roughly 10x faster. Same package name and tsc command, stricter defaults, removed deprecated options — and a programmatic API caveat for tools. How to upgrade and what to watch for.
Upgrading to Tailwind CSS v4: What Changed and How to Migrate
Tailwind CSS v4 moved configuration into CSS, replaced the @tailwind directives with one import, detects your files automatically and renamed several utilities. How to run the official upgrade tool, the breaking changes that actually bite (shadows, rings, borders, opacity utilities), browser requirements, and what to check after.
ReferenceError: X Is Not Defined — What It Means and How to Fix It
"Uncaught ReferenceError: x is not defined" means JavaScript can't find a variable or function with that name in the current scope. The common causes — typos, missing imports, scope, script load order, $ and jQuery, require in the browser, and window or document in server code — with a fix for each.
React useActionState and useOptimistic: Forms Without the Boilerplate
React 19's Actions replace hand-rolled loading and error state for forms. How useActionState returns state, a form action and isPending; how useOptimistic shows a change instantly and rolls back on failure; useFormStatus for submit buttons; and how they fit with Next.js server actions.
React 19.3: View Transitions, Fragment Refs and browser() Are Stable
React 19.3 (9 September 2026) makes View Transitions stable with the <ViewTransition> component and addTransitionType, adds Fragment Refs for working with groups of DOM nodes without wrappers, introduces react-dom's browser() for client-only rendering, and adds Trusted Types support. Examples and what changes for your app.
Next.js September 2026 Security Release: Upgrade to 16.3.8 or 15.5.27
Next.js patched seven vulnerabilities on 30 September 2026 in v16.3.8 and v15.5.27, after an out-of-band critical fix on 22 September. A high-severity SSRF in image optimisation, several cache-poisoning and cache-leak issues for SSG/ISR and 'use cache', and a dev-server MCP endpoint that leaked project data to malicious websites. Who's affected and what to do.
Next.js Cache Components and 'use cache': The New Caching Model Explained
Cache Components replace the App Router's implicit caching with explicit 'use cache' annotations on components and functions. How to enable it, how cacheLife and cache tags work, why dynamic data must sit inside Suspense, ensureStatic in Next.js 16.4, and how to migrate an existing app.
Next.js 16.4: Cache Components Recommended for Every App, Agent Upgrades and React 19.3
Next.js 16.4 (6 October 2026) recommends Cache Components for all apps and enables them by default in create-next-app, adds ensureStatic and prefetch controls, a next upgrade --agent command for coding agents, smaller Turbopack caches and bundles, React 19.3, and experimental lazy dynamic imports and a Rust React Compiler.
Module not found: Can't resolve — How to Fix It (Next.js, Vite, webpack)
"Module not found: Error: Can't resolve 'x'" means your bundler couldn't find a file or package you imported. The fixes for each cause: a package that isn't installed, wrong relative paths, case-sensitive file names that work on Mac but fail on Linux, path aliases like @/, and Node built-ins imported in browser code.
"ReferenceError: window is not defined" in Next.js: How to Fix It
window, document and localStorage only exist in the browser. Next.js renders components on the server first, where they don't exist. Why it happens, and the fixes: useEffect, 'use client', typeof checks, dynamic imports with ssr: false, and libraries that touch window on import.
What Is TypeScript? JavaScript With Labels, Explained for Beginners
TypeScript is JavaScript plus types: labels that say what kind of value each thing holds, checked before your code runs. What it looks like, why AI tools default to it, what .ts and .tsx files are, and how to read the red squiggles.
What Is Streamlit? Build Data Apps in Pure Python
Streamlit turns a Python script into an interactive web app — charts, tables, inputs and chat interfaces — without writing HTML or JavaScript. How it works, a minimal example, what it's great for (dashboards, AI demos, internal tools), its limits, and how to deploy it.
What Is llms.txt? A Guide for AI-Readable Websites
llms.txt is a proposed Markdown file at your site's root that gives AI tools a concise, curated map of your content. What goes in it, the format, llms-full.txt, how it differs from robots.txt and sitemap.xml, who actually reads it today, and how to add one in Next.js.
What Is JSX? The HTML-Like Syntax in React, Explained
JSX lets you write HTML-looking markup inside JavaScript, and it's how React components describe their UI. What it compiles to, the rules that differ from HTML (className, closing tags, one parent), embedding JavaScript with curly braces, lists, conditionals, and JSX vs TSX.
What Is htmx? Interactive Pages Without a JavaScript Framework
htmx lets HTML elements make requests and swap in HTML from the server, using attributes like hx-get and hx-swap — so you can build interactive pages without React. How it works, examples, where it shines, where it doesn't, and how it pairs with Django, Flask, Rails and Go.
What Is a Wireframe? (And Why Sketch Before You Build With AI)
A wireframe is a simple sketch of a screen's layout — boxes, labels, buttons — without colours or styling. What wireframes are for, wireframe vs mockup vs prototype, tools from paper to Figma, and how a quick wireframe makes AI app builders produce what you actually want.
What Is a Headless CMS? And Does Your App Need One?
A headless CMS is a content editor with no website attached — it stores your content and hands it to your app through an API. How it differs from WordPress, the popular options, when it beats Markdown files or your own database, and when it's overkill.
Webpack vs Vite: What a Bundler Does and Which One to Use
Bundlers turn your source files into the optimised JavaScript and CSS a browser loads. How Webpack and Vite differ — bundling everything up front vs serving native modules in development — speed, configuration, migration, and where Turbopack and Rspack fit.
The Vercel AI SDK: Streaming Chat and Tool Calls in TypeScript
The AI SDK is a TypeScript toolkit for calling language models from any provider with one API, streaming responses to React with useChat, calling tools, and generating structured data. A working Next.js chat with Claude, tool calling with stopWhen, structured output, provider choice, and production concerns.
var vs let vs const in JavaScript: Which to Use and Why
Three ways to declare a variable in JavaScript, and why modern code uses const by default, let when the value changes, and var almost never. Scope, hoisting, reassignment vs mutation, and the classic loop bug — with short examples.