See what's launched

The next gen Gatsby is here Performance, developer velocity, and scaling to meet Enterprise needs - See what’s launched

Sharing Components Across Websites

One of the benefits of multiple teams using Gatsby within your organization is the ability to share React components across different websites.

There are several strategies here.

Component libraries are a cleaner and purer approach, but often requiring additional tooling or causing some changes to require pull requests to multiple.

Alternately, teams can implement systems for component discoverability, such as Storybook or Styleguidist, on a per-site basis and copy-paste desired code across repositories.

To avoid copy-pasting and reuse components instead you can use component-sharing tools such as Bit to reuse and sync components between websites.

Note: do you have additional ideas on sharing components across websites? We welcome contributions to the Gatsby docs. Find out how to contribute.

See the issue relating to this stub on GitHub
Edit this page on GitHub
© 2022 Gatsby, Inc.