A universal component library
npm install --save samp-component-lib
or
yarn add samp-component-lib
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 />
}
}
From library installed folder run
yarn link
yarn start
On consumer folder (Your front CRA project) run
yarn link samp-component-lib
yarn start
MIT © samparhizkar