0.1.0 • Published 7 years ago
@slayre/componentify v0.1.0
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.jsto 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.
0.1.0
7 years ago