Skip to content

Search

Articles, tools, solutions and knowledge base guides

Start typing to search across articles, tools and apps.

Frontend

Reference material for engineers and product teams. Company updates live on the Blog.

52 articles in the Frontend category

Latest articles

CSS z-index: Why Is It Not Working? Stacking Contexts Explained

A tooltip with z-index: 999999 can still appear behind a header. A dropdown can also be clipped even when its stacking order is correct. These are distinct problems. The examples below show how to diagnose paint order, containing blocks and clipping instead of escalating arbitrary numbers.

JavaScript Deep Copy vs Shallow Copy: How to Copy Objects Without Mutating the Original

You copy a profile using object spread, edit its address in a form and discover that the saved profile has changed too. A new top-level object does not guarantee an independent data structure. The appropriate method depends on the types involved, the isolation you need and whether you are updating one field or taking a snapshot.

JavaScript Regular Expressions: How to Write Correct and Safe Patterns

An identifier validator accepts a substring, a regex test alternates between true and false, or a search misses accented letters. These are often pattern or API design problems rather than malformed data. This guide shows how to validate complete values, extract structured text and avoid expensive matching.

React Server Components vs Client Components: When to Use Each

Does a single interactive button require moving an entire page into the browser? No. In Next.js App Router, the catalog and its data access can stay on the server while the browser receives the logic needed for interaction. A poorly placed boundary can inflate the JavaScript bundle, expose unnecessary data or invoke unavailable APIs. These React 19 and App Router examples show how to split responsibilities without confusing Server Components with SSR.

React useMemo vs useCallback vs memo: When Does Memoization Improve Performance?

Opening a panel or changing the theme makes a large invoice list render again even though the data is unchanged. Adding useMemo everywhere will not automatically fix it. Identify whether the cost comes from calculations, child rendering or changing references. The examples below show how to choose an optimization, preserve correct behavior and measure its effect.

TypeScript any vs unknown vs never vs void: When to Use Each

Why does code using `any` compile but later throw a TypeError? Why can a `void` callback return something at runtime, and where does `never` come from? These four types solve different problems. Choosing the right one keeps unchecked assumptions from leaking into application code.

JavaScript Debounce vs Throttle: Differences, Examples and When to Use Each

Debounce and throttle reduce callback executions when events arrive rapidly. They solve different timing problems: one waits for quiet, while the other allows work during ongoing activity. The choice affects perceived latency, network traffic and whether a final update can be lost.

Next.js App Router: Layouts, Routing and Data Fetching

The App Router combines route segments, rendering boundaries and data access. Using a product catalog, this guide explains how to keep interactive code small, choose explicit freshness policies, stream slow content and handle failures without unnecessary client-side requests.

CSS Flexbox: A Practical Guide with Examples

Flexbox distributes items along one direction and adapts their sizes to available space. Rather than memorizing properties in isolation, understand how the browser resolves sizes and distributes free space. These examples progress from a simple action bar to responsive forms and independently scrolling panels.