I often find myself using Ant Design and customizing it a bit for my needs. Creating a repo of shared React components for use in my personal projects.
cd [project_using_current_package]
yalc add @bartimaeus/components
yarn install
import React, { useState } from 'react'
import { ColorPicker } from '@bartimaeus/components'
export default = () => {
const [value, onChange] = useState('404040')
render() {
return <ColorPicker value={value} onChange={onChange} />
}
}
Currently, development is happening with yalc
so that the package can be used locally without publishing to an npm repository.
If you don't have yalc installed, then install it locally: npm install -g yalc
-
Install dependencies
yarn install
-
Start up Storybook
yarn start
-
Make and commit the changes
-
Publish with
yalc
yalc publish cd [project_using_current_package] yalc update yarn install
@bartimaeus/components is MIT licensed