Join us for React Conf on Oct 7-8.
Learn more.
React
v19.1
Search
⌘
Ctrl
K
Learn
Reference
Community
Blog
On this page
Overview
State is tied to a position in the render tree
Same component at the same position preserves state
Different components at the same position reset state
Resetting state at the same position
Option 1: Rendering a component in different positions
Option 2: Resetting state with a key
Resetting a form with a key
Recap
Challenges