From the course: React: Server-Side Rendering

Unlock the full course today

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

Add links and pages with Express or Next.js

Add links and pages with Express or Next.js - React.js Tutorial

From the course: React: Server-Side Rendering

Start my 1-month free trial

Add links and pages with Express or Next.js

- [Instructor] So now that we have our route to call, we need to create the page in question or the pages in question. And while we're at it, a link we can click to get to one of them. So let's go ahead and do that. So I'm going to switch back to Visual Studio Code, and I'm going to close the server.js file because we're done with that one. And now we need to create the pages inside of the pages folder. So the first one I'm going to do is the Ohyeah. So let's go inside of the folder Ohyeah, and then create a new file, which I'm going to call, ohyeah.js, and then I'm going to simply create a function that will return one HTML tag to create one page, that's it. So let's go ahead and do ohyeah, which is the function that will return, an h1, I'm page 3 trapped inside of OH YEAH, and that's my page. And all we need to do now is export it. And what I'm going to do now is copy all that code so I can create another page,…

Contents