DOM props and forms

defaultValue prop

Provides the starting value for an uncontrolled text input, textarea or select. Later edits belong to the browser. Do not mix it with value on the same field; changing defaultValue is not a general way to control the current value.

Formal Syntax & Structure

react syntaxreact
defaultValue="Saw"

Working Example

Example Snippetreact
export default function App() { return <label>Tool<input defaultValue='Saw' name='tool'/></label>; }
React Reference