Design comparison
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
- @fayax555Posted almost 3 years ago
It's better to use
getStaticProps
when the api data doesn't change often since it is much faster thangetServerSideProps
. But I guess it doesn't matter much here, since you cleverly hide the loading state with a nice animation.Marked as helpful1@fayax555Posted almost 3 years ago@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 GitHubJoin 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