Skip to main content

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 simply copy-paste desired code across repositories.

In this section:

This is a stub. Help our community expand it.

Please use the Gatsby Style Guide to ensure your pull request gets accepted.

Edit this page on GitHub