mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
35 lines
807 B
TypeScript
35 lines
807 B
TypeScript
import * as React from 'react';
|
|
import InfiniteScroll from 'react-infinite-scroller';
|
|
|
|
class Test1 extends React.Component {
|
|
public render() {
|
|
return (
|
|
<InfiniteScroll
|
|
loadMore={() => {}}
|
|
>
|
|
<div>Test 1</div>
|
|
</InfiniteScroll>
|
|
);
|
|
}
|
|
}
|
|
|
|
class Test2 extends React.Component {
|
|
public render() {
|
|
return (
|
|
<InfiniteScroll
|
|
loadMore={() => {}}
|
|
element='section'
|
|
hasMore
|
|
initialLoad={false}
|
|
isReverse
|
|
pageStart={2}
|
|
threshold={500}
|
|
useCapture
|
|
useWindow={false}
|
|
>
|
|
<div>Test 1</div>
|
|
</InfiniteScroll>
|
|
);
|
|
}
|
|
}
|