State

State and tree position

React associates state with identity in the rendered tree; matching type and key at a matching position can preserve state.

Formal Syntax & Structure

react syntaxreact
<Editor key={record.id} />

Working Example

Example Snippetreact
<NoteEditor key={workshop.id} workshop={workshop.title} />
React Reference