Category: NextJS

March 11, 2023 / CodeMoments

The websites these days are becoming more and more complex. And we have to load things in parts sometimes as micro components. Or maybe lazy loading some components just to better user experience. When we do this we need to create loader for heavy components that is replaced with the…

April 5, 2022 / CodeMoments

next-cookies is not just an npm package. It’s a life saviour. This package solved a big problem that NextJS developer faced. Browser storage in all SSR, SSG functions. The most common use case for accessing cookies in getServerSideProps is when you want to fetch data from an API that requires…

June 2, 2021 / NextJS

While building a website sometimes you might need to run some specific code before the route changes and after the route changes in your NextJS app. The best use case is setting loader variables. A Page loader is simply animation or gif that you show to user until your page…