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