mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-12 21:13:14 +08:00
Update react-lazyload-tests.tsx
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import LazyLoad from "react-lazyload";
|
||||
import LazyLoad, { forceCheck } from "react-lazyload";
|
||||
|
||||
interface State {
|
||||
arr: string[];
|
||||
@@ -14,6 +14,11 @@ class Normal extends React.Component<{}, State> {
|
||||
}
|
||||
this.state = { arr };
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
forceCheck();
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user