Week 12— Async API Calls: fetch, Axios, and Promises
infosecwriteups.com·3h

4 min read14 hours ago

Intro

Hi there! Another weekend, another blog, and if you’re new here, I am @iamaangx028 👋

Quick continuity note: In Week 10, AJAX and modern client-server calls set the stage, and Week 11 dug into React state and control patterns — this one focuses on API calls and async flows that make the web feel instant. While it’s not mandatory to read last week’s blogs, it’s good to revise those concepts for better understanding.

Press enter or click to view image in full size

Let’s start Week — 12

Fetch — The modern AJAX way

Fetch is the browser-provided interface for requesting resources over the network, returning a Promise that resolves to a Response object, which can then be parsed as JSON, text, etc..

The basic syntax is fetch(url, [options]...

Similar Posts

Loading similar posts...