Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Next JS, SSR

#next
Benja.min 740

@BenjaDotMin

Desktop design screenshot for the REST Countries API with color theme switcher coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
4advanced
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi all! Here is an app featuring the NextJS framework (with server sider rendering) and some JS filtering.

NextJS seems pretty good from building this, and I am excited to get to know more about it, So any tips are welcome!

Community feedback

Fayaz 380

@fayax555

Posted

It's better to use getStaticProps when the api data doesn't change often since it is much faster than getServerSideProps. But I guess it doesn't matter much here, since you cleverly hide the loading state with a nice animation.

Marked as helpful

1

Benja.min 740

@BenjaDotMin

Posted

@fayax555 A really useful insight, thank you

1
Fayaz 380

@fayax555

Posted

@BenjaDotMin Yea if you look at my solution, you can see the country information loads instantaneously because I use getStaticProps instead of getServerSideProps.

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord