Create a Simple Form Field in redux-form

InstructorRory Smith

Share this video with your friends

Send Tweet

In redux-form, the Field component is used to supply a form field and connect it to our redux store, by using the name prop. In this lesson, we are going to see how to use the component in the simplest way possible; passing a string of a form element (e.g. ‘select’, ‘input’) as the Field’s component props;

Nikoloz Garibashvili
~ 6 years ago

You didn't mention and people like me who don't pay attention need to know: pay attention to App.js and RegisterForm.js in App.js you pass onSubmit but in RegisterForm.js you pass handleSubmit because redux form takes this onSubmit and wraps it with preventDefault and passes it as handleSubmit

Paulina
~ 6 years ago

What kind of color scheme do you use? Very readable