---
title: "Discussion on \"Data fetching in our React SPA\" | Hashnode"
description: "Discussion on \"Data fetching in our React SPA\". To fetch data inside a react component, we primarily need 2 things:\n\nSource\n\nConsumer\n\n\nThe source can be a REST or GraphQL endpoint.Consumer in our case is a browser-based application.\nA common pattern with React apps fetching data without using a 3..."
url: "https://hashnode.com/posts/data-fetching-in-our-react-spa/643936b607fed8c5b0835d4d"
---

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

Discussion

# [Data fetching in our React SPA](https://rohanbagchi.hashnode.dev/data-fetching-in-our-react-spa?utm_source=hashnode&utm_medium=feed)

To fetch data inside a react component, we primarily need 2 things: Source Consumer The source can be a REST or GraphQL endpoint.Consumer in our case is a browser-based application. A common pattern with React apps fetching data without using a 3...

Apr 14, 2023 · 5 min read · rohanbagchi.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#data-fetching](https://hashnode.com/tag/data-fetching)
-   [#react-query](https://hashnode.com/tag/react-query)
-   [#swr](https://hashnode.com/tag/swr)

## Written by

[Rohan Bagchi](https://hashnode.com/@rohanBagchi)

@rohanBagchi · Bangalore, India

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

Engineer at Atlassian

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
