From be9622c8e6777bf203b2e26531cc0c3cb8ee72f2 Mon Sep 17 00:00:00 2001 From: Vadim Rogov <54108395+vdmrgv@users.noreply.github.com> Date: Mon, 4 Jul 2022 18:47:00 +0300 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 901beee..3ac70ec 100644 --- a/README.md +++ b/README.md @@ -47,13 +47,13 @@ import useInfiniteScroll from 'react-easy-infinite-scroll-hook'; const InfiniteListComponent = ({ isLoading, items, canLoadMore, next }) => { const { setRef } = useInfiniteScroll({ - // function to fetch more items + // Function to fetch more items next, - // the number of items loaded if you use the "Y-scroll" axis ("up" and "down") + // The number of items loaded if you use the "Y-scroll" axis ("up" and "down") // if you are using the "X-scroll" axis ("left" and "right") use "columnCount" instead - // you can also use "columnCount" and "rowCount" if you use "Y-scroll" and "X-scroll" at the same time + // you can also use "rowCount" and "columnCount" if you use "Y-scroll" and "X-scroll" at the same time rowCount: items.length, - // should load more items in the specified direction + // If marked "true" in the specified direction, it will try to load more items if the threshold is reached // support for all directions "up", "down", "left", "right", both individually and in all directions at the same time hasMore: { down: canLoadMore }, });