0.0.16 • Published 5 years ago
samp-component-lib v0.0.16
react-component-lib
A universal component library
Installation in consumer (CRA) projects
npm install --save samp-component-lib
or
yarn add samp-component-libExample usage (CRA project)
import React, { Component } from 'react'
import {DoorSwtch} from 'samp-component-lib'
// import 'samp-component-lib/dist/index.css'
class Example extends Component {
render() {
return <DoorSwitch />
}
}Testing the library on consumer while developing
From library installed folder run
yarn link
yarn startOn consumer folder (Your front CRA project) run
yarn link samp-component-lib
yarn startLicense
MIT © samparhizkar