This is a template/starter to create a React UI library using Storybook and TypeScript
npm install
npm start
npm run build
After publishing your lib (ie my-react-lib
) you can use it by importing the styles in your App's entry point:
// index.tsx
import 'my-react-lib/lib/styles.css'
Then you can import and use your components:
//
import React from 'react'
import { Example } from 'my-react-lib'
export class App extends React.Component {
render() {
return <Example />
}
}