0.1.0 • Published 5 years ago

@slayre/componentify v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

componentify

Extract Reusable Components from existing React Project.

Getting Started

  • Inside your root folder run this command
$ npx componentify-init components/ReusableComponent -p=@slayre/componentify
  • Change the contents of src/components/ReusableComponent/src/index.js to import the component you want to extract and export it.
export { default } from 'pathtocomponent';
  • Build it. Make sure you are in ReusableComponent's dir.
yarn build
  • Publish It.