0.2.0 • Published 7 years ago
react-comps
Licence
MIT
Version
0.2.0
Deps
9
Size
31 kB
Vulns
1
Weekly
0
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.