twobin / twobin/react-lazyload
Weird issue - can't get lazyload to work. [code included]
Open
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 485
- PR merge metrics
- No merged PRs in 30d
Description
Hi, can I check why lazy load does not seem to work here please - https://codesandbox.io/s/4q11wjxn5w
Thanks!!
```jsx
const App = () => (
{[...Array(20)].map(() => {
return (
);
})}
);
```
```jsx
class Box extends React.Component {
constructor(props) {
super(props);
this.state = { color: "blue" };
}
componentDidMount() {
window.setTimeout(
() =>
this.setState({
color: "red"
}),
2000
);
}
render() {
return (
this component is lazyloaded by default!
);
}
}
```
Thanks.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.