---
title: "Discussion on \"How to  fetch data from an API  in a React app with SWR\" | Hashnode"
description: "Discussion on \"How to  fetch data from an API  in a React app with SWR\". SWR is a React Hooks for data fetching. That allows a web browser to cache response from a server"
url: "https://hashnode.com/posts/how-to-fetch-data-from-an-api-in-a-react-app-with-swr/6509ee3bf40f6f786f9cf6fc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to fetch data from an API in a React app with SWR](https://efkumah.hashnode.dev/how-to-fetch-data-from-an-api-in-a-react-app-with-swr?utm_source=hashnode&utm_medium=feed)

SWR is a React Hooks for data fetching. That allows a web browser to cache response from a server

Sep 19, 2023 · 14 min read · efkumah.hashnode.dev  
Updated Nov 1, 2023  
Read the article

-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#apis](https://hashnode.com/tag/apis)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Emmanuel Fordjour Kumah](https://hashnode.com/@efkumah)

@efkumah · Accra, Ghana

  
[View profile](https://hashnode.com/@efkumah)

Sharing Programming Knowledge

Documenting my coding journey, sharing thoughts and helping beginner programmers remove the frustration with copy-paste JavaScript code without understanding

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
