---
title: "Discussion on \"Today I learned what getStaticProps and getServerSideProps do\" | Hashnode"
description: "Discussion on \"Today I learned what getStaticProps and getServerSideProps do\". I've been using React for a couple years, and Next.js for a little over a year though for much more straightforward projects.\nI'm used to using the useState and useEffect hooks in React. Normally, I'd set my state variables in a side effect, and then..."
url: "https://hashnode.com/posts/today-i-learned-what-getstaticprops-and-getserversideprops-do/61b95e5dd2a5c9036e6f1a38"
---

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

Discussion

# [Today I learned what getStaticProps and getServerSideProps do](https://blog.tannerwiltshire.com/today-i-learned-what-getstaticprops-and-getserversideprops-do?utm_source=hashnode&utm_medium=feed)

I've been using React for a couple years, and Next.js for a little over a year though for much more straightforward projects. I'm used to using the useState and useEffect hooks in React. Normally, I'd set my state variables in a side effect, and then...

Dec 15, 2021 · 2 min read · blog.tannerwiltshire.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#problem-solving-skills](https://hashnode.com/tag/problem-solving-skills)

## Written by

[Tanner Wiltshire](https://hashnode.com/@Taouen)

@Taouen

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
