Forms

Textarea value

Use value with onChange for editable controlled multiline text, or defaultValue for an uncontrolled initial value.

Formal Syntax & Structure

react syntaxreact
<textarea value={notes} onChange={e => setNotes(e.target.value)} />

Working Example

Example Snippetreact
<textarea defaultValue="Notes" />
React Reference