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
From the course: Building an App with React.js and MeteorJS
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…
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.
Contents
-
-
-
-
-
Meteor introduction3m 5s
-
npm introduction4m 19s
-
Yarn, the Facebook package manager3m 36s
-
React routing8m 3s
-
Creating a schema7m 26s
-
Creating a player form11m 47s
-
Functions to add a player7m 17s
-
Subscribe and publish8m 20s
-
Add a user login7m 58s
-
Assign players to user10m 50s
-
Securing our DB transactions with server methods7m 32s
-
-
-