0.2.0 • Published 5 years ago

react-comps v0.2.0

Weekly downloads
33
License
MIT
Repository
-
Last release
5 years ago

react-comps

Personal library of React components

Usage

$ npm i react-comps
import React from "react";
import ReactDOM from "react-dom";
import { Button } from "react-comps";
import LaunchIcon from "@material-ui/icons/Launch";

function App() {
  return (
    <Button size="sm" icon={LaunchIcon}>
      Button Small
    </Button>
  );
}

export default App;

Development

To start the development server (with entry point src/index.js), run

$ npm start

Storybook

To start the components explorer

$ npm run storybook

Publish to npm

To transpile src/lib and create a build in the dist folder, run:

$ npm run build

To publish it to npm using:

$ npm publish
  • Note that only README.md and the dist folders are published to npm.

Thanks

Based on this project.