Connecting to the Backend

Learn how to connect the React frontend to the back-end server.

In this lesson, we’ll connect to our back-end server to retrieve the list of movies from the database. We’ll create a service class for that. A service is a class with a well-defined specific function that your application needs. In our case, our service class is responsible for talking to the backend to get and save data. Service classes provide their functionality to be consumed by components. The code files created previously have ...

Get hands-on with 1400+ tech skills courses.