From the course: Build an AI Application with React and AWS SageMaker
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Form component
From the course: Build an AI Application with React and AWS SageMaker
Form component
- [Instructor] Okay, so let's continue working on the App component, and we're going to focus now on the form itself. So, what I'm going to do here is go all the way down to the form and I'm going to start putting some more meat in here. I'm also going to have the CSS open, so I'm going to click here and have App.css completely open here. And then I'm going to switch in between the App and the CSS to make sure that I have everything that I need from a look perspective as well. Okay, so let's go ahead and continue with that. I'm first going to add the class names, and as I add the class names I'm going to after go into the CSS and fill them up. So, I'm going to create a weather-container here, and then I'm going to do onSubmit for the form 'cause we need to submit. And we're going to handleSubmit, and className of weather-form. Then in the input I'm going to have a few things. So, this is going to be of type text, value, the initial value is going to be the date, and onChange I'm going…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.