In the preceding chapter, we learned how to implement web services with Node.js. In this chapter, we are going to learn how to implement a single-page application (SPA) that consumes the web services that we created in the preceding chapter. The web services might change slightly in this chapter, but the changes should be small enough not to require us to cover them in this chapter.
The companion source code includes an updated version of the backend application that we implemented in the preceding chapter. The new upgraded version contains new controllers and web services that allow us to manage a catalog of movies and actors, as opposed to just movies.
In this chapter, we are going to learn how to consume a web service from a React application and how we can use React components to display the data fetched from the backend in a...