Skip to content

Commit 2cb713b

Browse files
Updated README.md
Added yarn support command to install the package.
1 parent f4dab31 commit 2cb713b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ added. An infinite-scroll that actually works and super-simple to integrate!
66
# install
77
```bash
88
npm install --save react-infinite-scroll-component
9+
10+
or
11+
12+
yarn add react-infinite-scroll-component
913

1014
// in code ES6
1115
import InfiniteScroll from 'react-infinite-scroll-component';
@@ -82,4 +86,4 @@ name | type | description
8286
**pullDownToRefreshThreshold** | number | minimum distance the user needs to pull down to trigger the refresh, `default=100px`
8387
**refreshFunction** | function | this function will be called, it should return the fresh data that you want to show the user
8488
**initialScrollY** | number | set a scroll y position for the component to render with.
85-
**key** | string | the key for the current data set being shown, used when the same component can show different data sets at different times, `default=undefined`
89+
**key** | string | the key for the current data set being shown, used when the same component can show different data sets at different times, `default=undefined`

0 commit comments

Comments
 (0)