Courses

[NEW] React Native Mobile App with Laravel 12 API

Making First API Calls

You're reading a FREE PREVIEW of a PREMIUM course.
Summary of this lesson:
- Evaluate API client options (Fetch, Axios, Frisbee) and select Axios for its features and community support
- Set up an API service with Axios configured to connect to the Laravel backend
- Create a fetchCategories function to retrieve data from the categories endpoint
- Implement useEffect hook to call the API when the component mounts
- Handle API response data with useState to display dynamic content from the server

Link to the repository

[Only for premium members]

Now that we have our list - we should make it dynamic. We will set up the API service to use our Laravel API application. In this lesson, we will:

  • Check the options for API calls (Axios, Fetch, etc.)
  • Pick our API package and configure it
  • Update our List to use the API

Let's get started!


Available Options - Axios, Fetch, Frisbee

If we look at the React Native Documentation - they list quite a few options for making API calls. The most...

The full lesson is only for Premium Members.
Want to access all 19 text lessons of this course? (91 min read)

You also get:

  • 77 courses
  • Premium tutorials
  • Access to repositories
  • Private Discord