When developing with an Nx monorepo it is highly suggested to develop your main logic inside so-called Nx workspace libraries. That allows you to develop components in isolation (e.g. with Storybook), leads to a better API and decoupling overall and facilitates reuse across various applications.
In this lesson, we learn about how to easily share a component that has been previously developed within an Nx workspace library with our Next.js-based application.
Prefer to read along as well? Here's the accompanying article.