Chapter 6 · Example 3 · Deep dive into diffing and reconciliation
Fixing the bug with arrays
Rendering each conditional input in its own array slot with a null sibling gives them stable positions, so switching now unmounts one and mounts the other.
Loading live editor…