@slayre/componentify

0.1.0 • Public • Published

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.

Package Sidebar

Install

npm i @slayre/componentify

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

255 kB

Total Files

8

Last publish

Collaborators

  • rajatsharma