Skip to content

Commit a05ceaa

Browse files
authored
Update README.md
1 parent 2509589 commit a05ceaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ import MyList from './MyList'
4343
export default ({ items, fetchMoreItems }) => <div>
4444
<MyList
4545
items={items} /* pass props directly to your component */
46-
onScrolledTop={e => fetchMoreItems()} /* add props that are intercepted by autoscroll */
47-
onScroll={e => console.log('the list was scrolled')} /* */
46+
onScrolledTop={e => fetchMoreItems()} /* add props to be intercepted by autoscroll */
47+
onScrolled={e => console.log('the list was scrolled')}
4848
/>
4949
{/* ... */}
5050
</div>
@@ -62,7 +62,7 @@ export default ({ items, fetchMoreItems }) => <div>
6262

6363
Optional props:
6464

65-
- `onScroll`: called whenever the list is scrolled. This is not an event listener.
65+
- `onScrolled`: called whenever the list is scrolled. This is not an event listener.
6666
- `onScrolledTop`: called when the list is scrolled to the top.
6767
Pass these props when rendering the wrapped list component.
6868

0 commit comments

Comments
 (0)