1.0.0 • Published 5 years ago
rockblings-react-component-library v1.0.0
React Component Library
This project skeleton was created to help people get started with creating their own React component library using:
It also features:
- :white_check_mark: Storybook to help you create and show off your components
- :white_check_mark: Jest and Enzyme enable testing of the components
Read my blog post about why and how I created this project skeleton ▸
Development
Testing
npm run test
Building
npm run build
Storybook
npm run storybook
Publishing
npm run publish
Component Usage
Let's say you created a public npm library called harvey-component-library
with the TestComponent
component created in this repository.
Usage of the component (once published to the registry and then installed into another project) will be:
import React from "react";
import { TestComponent } from "harvey-component-library";
const TestApp = () => (
<div className="app-container>
<TestComponent theme="primary" />
</div>
);
export TestApp;
1.0.0
5 years ago