This part covers CSS stacking contexts, controlled/uncontrolled components, Pure Components, positioning, HTTP protocols, and client-side storage options.


Question 1. What is z-index and what is a Stacking Context?

z-index

Stacking Context

Important Rules

Common Issue

Solutions

  1. Remove the parent’s stacking context (position, transform, etc.).
  2. Render modal/dropdown at the root (e.g., <body>).

React Portals