Components

UserInfo

<UserInfo values change nextStep error />

Constructor

# <UserInfo values change nextStep error />

The User Info component displays the basic form fields that all users need to fill out to register.

PropTypes:
Name Type Required Description Default
values object Yes The form field values passed down from the Register component
change func Yes The change function to handle the input changes in the form and update the state in the parent component
nextStep func Yes The next step function to handle progressing further in the form
error bool Yes The error state of the form to be shared across sibling components and interpreted by the parent component

View Source components/users/Register/UserInfo.js, line 10

Methods

# inner next(e)

This function is called when the user clicks on the next button. This function has an event parameter to prevent the page from refreshing after a mocked submit event.

Parameters:
Name Type Description
e React.ChangeEventHandler.<HTMLInputElement>

The event handler object for the input fields

View Source components/users/Register/UserInfo.js, line 16