0.0.16 • Published 4 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-lib
Example 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 start
On consumer folder (Your front CRA project) run
yarn link samp-component-lib
yarn start
License
MIT © samparhizkar