From the course: React.js: Building an Interface

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Getting appointments and debugging

Getting appointments and debugging - React.js Tutorial

From the course: React.js: Building an Interface

Start my 1-month free trial

Getting appointments and debugging

- So let's go ahead and add another component that will allow us to add appointments into our project. So to do that I'm going to go into my components sub folder and make a new file. And this one's going to be called add appointment and it's going to be pretty much like the one we just made. So let's go through the process again. We're going to import some icons so let's go ahead and import something called BiCalendarPlus and then this will come from react icons/bi and then we'll create the constant for ad appointment using our arrow function. This is going to return something. So this is pretty much the structure of every component at least to begin with. You don't even have to have the import. So let's go ahead and save this and I'm going to go get some code for my component. So this is all just a bunch of JSX code which has a lot of code for T%ailwind CSS which is what's going to make it look really nice without a…

Contents