This is a starter kit for creating React Components which you want to publish on npm.
- Clone the repo using
git clone https://github.com/anampartho/npm-package-starter-kit-react.git <your-package-name>
. Replace<your-package-name>
with the package name of your choice. - Delete the
.git
folder and re-initiate git usinggit init
- Add remote settings to your git.
- Inside
src/components
go ahead and create new components. - From
src/index.ts
export your components with a single default import.
The structure of this project is taken from: React Material UI Carousel and then some packages have been updated and others removed.