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.
Complex state in React involves managing many different state changes in many different components. There’s a library for that! I’ll recommend two, plus tell you what won’t work.
Would your React app work best with a rich-text editor or a text area where users can input information? This post can help you decide and learn how to implement the best choice.