Skip to content
DevDepth

Content Index

Paginated archive. You are viewing page 4.

Total items: 38

Topic Filter

Browse by tag

79 tags

Showing the most-used tags first so the archive stays easy to scan. Click a tag to browse only that topic.

All Content
Popular tags stay visible first.
3 min readlayout-strategyCss Layout / Strategy

What `display: contents` Actually Does in Flexbox and Grid Layouts

Understand when `display: contents` helps flatten wrappers for layout participation, where it creates tradeoffs, and why it is not a universal replacement for subgrid.

9 min readlayout-strategyCss Layout / Strategy

When to Use `margin`, `padding`, and `gap` in CSS Layouts

Learn how to choose `margin`, `padding`, or `gap` for component spacing, optional icons, horizontal scrollers, and dynamic content without brittle CSS hacks.

7 min readlayout-strategyCss Layout / Strategy

Why `min-width: 0` Fixes So Many Flexbox and Grid Layout Bugs

Learn how automatic minimum size and `min-content` cause `flex: 1`, `1fr`, long words, and scrollable components to overflow, and when to use `min-width: 0`, `overflow: hidden`, or `minmax(0, 1fr)`.

6 min readlayout-strategyCss Layout / Strategy

Why `position: sticky` Is Not Working and How to Fix It

Learn why `position: sticky` fails when thresholds are missing, ancestors use overflow, or Flexbox and Grid stretch the sticky item so it has nowhere to travel.

7 min readcss-gridCss Layout / Grid

Why Fixed Grid Track Sizes Break Flexible Layouts and What to Use Instead

Use `min-content`, `max-content`, `fit-content()`, `minmax()`, `clamp()`, and `fr` more intentionally so CSS Grid layouts adapt to real content instead of rigid mockup widths.

13 min readreact-internalsReactInternals

How React Updates Work: What Happens Between setState and a DOM Update?

Understand how React turns setState into a DOM update through batching, scheduling, the render phase, the commit phase, and effect timing.

11 min readreact-internalsReactInternals

Is setState Synchronous or Asynchronous in React? React 18 vs Earlier Versions

Learn when setState appears synchronous or asynchronous in React, why the answer changes across calling contexts, and how React 18 automatic batching changes the behavior.

11 min readreact-internalsReactInternals

React Concurrent Rendering: The Underlying Principle

Understand how Fiber, scheduling/time slicing, lanes, and double buffering work together to make concurrent rendering responsive and consistent.

6 min readreact-internalsReactInternals

useEffect vs useLayoutEffect: The Real Difference in React’s Commit Phase

Understand how React Fiber stores both hooks in the same effect list, why HookLayout and HookPassive tags matter, and when each runs during the commit phase.