In this article, we’ll build a simple ecommerce site with Shopify and Next.js hosted on Netlify. We’ll also see how to improve the performance of our site by reducing our build times using a new solution introduced by Netlify called Distributed Persistent Rendering.
Although useEffect is enough for most of our needs, we should know about the useLayoutEffect hook—running synchronously, it can be used for things such as animations, measurements, mutations, etc.