1 Introduction To React Forms 09f2e05ec5
1 Introduction To React Forms 09f2e05ec5
Table of Content
The form component
: a URL or function. The form will behave like the HTML form
action
When a function is passed to action the function will handle the form
submission. The function passed to action may be async and will be called
with a single argument containing the form data of the submitted form.
defaultChecked : A boolean. Specifies the initial value for the checkbox or radio
placeholder: A short hint that describes the expected value of the input.
type: Specifies the type of input (e.g., text , password , email , number , etc.).
focused).
minand max: Specifies the minimum and maximum values for numeric
inputs ( type="number" , type="date" , etc.).
pattern: Specifies a regular expression that the input's value must match.
password date
email time
number range
submit color
textarea radio
Assignments
Create a Form having all of the common input types mentioned above.
onBlur
onFocus
onChange