From the course: Building an App with React.js and MeteorJS

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Creating a player form

Creating a player form

- [Instructor] Let's go in now and create the player form to add new players. So the first thing we want to go is go inside of our client, here, and then, in the main.jsx, change the example route to new, and then the example, here, change to new as well, and the same thing on the actual path here. So, we're going to change the file name example to a new player, okay? And then go inside of the UI, and then, that particular file here, let's rename it to New, like so. And then, here as well, the class, you want to make sure you change the class as well, so you're able to use it in other files. Then we're going to start building our form here. So, first thing we're going to do is, basically, remove this, changing it with a row. So, className row, folder, div. And then, inside of that div, we're going to create our form, so let's create the form, with a class name of col s2. Let's close out our form. And h3, add a new player. And then we're going to do a section here, and then the next…

Contents