This repository contains a collection of reusable React components that can be installed individually.
-
Clone the repository:
git clone https://github.com/your-username/my-component-library.git cd my-component-library -
Install dependencies:
yarn install
In the project directory, you can run:
-
Build all packages:
yarn build
-
Run the development server:
yarn dev
-
Lint the code:
yarn lint
-
Format the code:
yarn format
-
Run tests:
yarn test -
Create a changeset:
yarn changeset
-
Version packages:
yarn version-packages
-
Publish packages:
yarn publish-packages
You can install individual components from this library using npm.
To install the React InfiniteScroll component, run:
npm install @infinite-scroll/react