Update react-lazyload-tests.tsx

This commit is contained in:
myxvisual
2017-06-26 13:08:32 +08:00
committed by GitHub
parent 9cb211daaa
commit 505aa4bed3

View File

@@ -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>