Forms – React
reactjs.org · 1,862 words · saved by 1 readers
A JavaScript library for building user interfaces
These docs are old and won’t be updated. Go to react.dev for the new React docs. These new documentation pages teach modern React and include live examples: <input> <select> <textarea> HTML form elements work a bit differently from other DOM elements in React, because form elements naturally keep some internal state. For example, this form in plain HTML accepts a single name: < form > < label > Name: < input type = " text " name = " name " /> </ label > < input type = " submit " value = " Submit " /> </ form > This form has the default HTML form behavior of browsing to a new page when the user
saved by
related reading
- Composition vs Inheritance – Reactreactjs.org
- You Might Not Need an Effect – Reactreact.dev
- Build your own Reactpomb.us
- Guides: Forms | Next.jsnextjs.org
- React Form Library | Getting Started Guidesurveyjs.io
- Tutorial: Tic-Tac-Toe – Reactreactjs.org
- Updating Objects in State – Reactreact.dev
- State as a Snapshot – Reactreact.dev
- Blogged Answers: A (Mostly) Complete Guide to React Rendering Behavior · Mark's Dev Blogblog.isquaredsoftware.com
- Why React Re-Renders • Josh W. Comeaujoshwcomeau.com
- React Form Builder | Generate dynamic HTML forms using JSONsurveyjs.io
- The Interactive Guide to Rendering in Reactui.dev