Typescript, React.js, React hooks
Pass the API url that you want to fetch from and the maximum expected results in the response (used to hide the 'Load more' button).
The hook is a generic function and accepts the interface for a result item.
const {list, loading, error, hasMore} = useLoadMore<IRow>(url, limit);
See ListWrapper.tsx for real-life example.