From the course: React Foundations by Pearson

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Lab: calling REST services

Lab: calling REST services - React.js Tutorial

From the course: React Foundations by Pearson

Lab: calling REST services

Okay, so it's lab time again, so we're in Lesson 6, calling REST services. So in this lab, you're going to modify the library web application from before so that it gets its data from a REST service rather than being hard-coded in the React application itself. So we'll have a look at the student folder. The starter code is in here. React dev student 06, call invest services. And the solution code is in here. React dev solutions 06, call invest services. So there are three exercises in this lab. The first exercise, which I'll lead you through, just to remind yourself of how the library application looks so far. At the moment, the library application hard codes the books and the films actually in the React application. So now is the time to make it more realistic. In exercise two, you'll see a REST service. I've already written the REST service, and it returns a list of books, and it returns a list of films. Okay, so that's just familiarization with the REST service. The code that you…

Contents