---
title: "Discussion on \"Data Fetching in NextJS - Server Side Rendering (SSR)\" | Hashnode"
description: "Discussion on \"Data Fetching in NextJS - Server Side Rendering (SSR)\". To use the SSR technique, you need to export an asynchronous function called getServerSideProps() which would be called by the server on every request."
url: "https://hashnode.com/posts/data-fetching-in-nextjs-server-side-rendering/626587135dd5677e9b8dee70"
---

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

Discussion

# [Data Fetching in NextJS - Server Side Rendering (SSR)](https://yoms.hashnode.dev/data-fetching-in-nextjs-server-side-rendering?utm_source=hashnode&utm_medium=feed)

To use the SSR technique, you need to export an asynchronous function called getServerSideProps() which would be called by the server on every request.

Apr 24, 2022 · 5 min read · yoms.hashnode.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#server-side-rendering](https://hashnode.com/tag/server-side-rendering)

## Written by

[Oluwayomi Oke](https://hashnode.com/@Yoms)

@Yoms

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

Frontend engineer

## Responses 3

Markdown supported · ⌘↵ to post

[James Morgan](https://hashnode.com/@Morganjay98)

[Sep 21, 2022](https://hashnode.com/posts/data-fetching-in-nextjs-server-side-rendering/626587135dd5677e9b8dee70/comment/632b8dc1d6f8beeaa5da5027)

Nice article! Hope to see more soon

[Busayo Akanni](https://hashnode.com/@Bu)

[Apr 24, 2022](https://hashnode.com/posts/data-fetching-in-nextjs-server-side-rendering/626587135dd5677e9b8dee70/comment/6265caa3d82f4558aff8b902)

This was such a great read! Looking forward to reading more from you.

[Ayomide Akinsanya](https://hashnode.com/@akinsanyaayomide)

[Apr 24, 2022](https://hashnode.com/posts/data-fetching-in-nextjs-server-side-rendering/626587135dd5677e9b8dee70/comment/6265c7215dd5677e9b8df307)

Thank you so much for this write up. Very detailed and easy to follow through.
