Class

ContactForm

ContactForm()

"ContactForm" component includes of name, mail, address inputs and submitting them.

Constructor

# new ContactForm()

View Source Components/ContactForm.js, line 86

Methods

# onChangeMail()

Veryfing mail, value can't be empty and must be matched with regex.

Parameters:
Name Type Description
e.target.value string

inputted mail

View Source Components/ContactForm.js, line 154

# onChangeName()

Veryfing name, value can't be empty and must be matched with regex.

Parameters:
Name Type Description
e.target.value string

inputted name

View Source Components/ContactForm.js, line 136

# onChangeTel()

Veryfing telephone number, value can't be empty and must be matched with regex.

Parameters:
Name Type Description
e.target.value number

inputted telephone number

View Source Components/ContactForm.js, line 118

# submit()

On submit data are validated, check if mail, number and namer are OK. If data is valid, element "sent" is displayed.

View Source Components/ContactForm.js, line 105