Framer Motion layout prop and React 18 conditional rendering interoperability
Goal: Achieve deterministic layout animations in Framer Motion (v10+) when components are conditionally rendered, ensuring repeatable behavior across renders in a development environment with hot module replacement (React 18). Uncertainty arises because the layout prop depends on synchronous DOM measurements that may be delayed by React 18's automatic batchi