This repo is a collection of common React components written in TypeScript/TSX to be used with React clients for Gatsby.
- Install to the project
npm install --save @gatsby-tv/components
- Import the components
import { Sidebar, Navbar } from "@gatsby-tv/components";
npm install
npm run build
npm login
npm publish
cd ~/components
npm link
cd ~/my-react-project
npm link @gatsby-tv/components
- Every time you make a change to this repo, make sure to run
npm run build
to update the link.
Storybook shows examples on usage and documentation of the components in this library.
npm run storybook