Lesson

The box you type in

The page owns the text. The box shows value. Typing fires onChange, which writes state, which paints the new string.

const [name, setName] = useState("");

<input
  value={name}
  onChange={(e) => setName(e.target.value)}
/>

Rock forms work this way.

I'm ready. Try the studio →