Skip to content

Commit af15d38

Browse files
committed
2.0.0
1 parent 1a3cf11 commit af15d38

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Really simple component that renders children elements when they enter the viewp
66
[![Dependency Status](https://david-dm.org/loktar00/react-lazy-load.svg?style=flat-square)](https://david-dm.org/loktar00/react-lazy-load)
77
[![NPM downloads](https://img.shields.io/npm/dm/react-lazy-load.svg?style=flat-square)](https://www.npmjs.com/package/react-lazy-load)
88

9-
## Install
9+
## Installation
10+
React Lazy Load requires **React 0.14 or later.**
1011

1112
```
1213
npm install --save react-lazy-load
@@ -15,10 +16,10 @@ npm install --save react-lazy-load
1516
## Usage
1617

1718
```jsx
18-
import React from 'react';
19+
import React, { Component } from 'react';
1920
import LazyLoad from 'react-lazy-load';
2021

21-
class MyComponent {
22+
class MyComponent extends Component {
2223
render() {
2324
return (
2425
<LazyLoad>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-lazy-load",
3-
"version": "1.0.8",
3+
"version": "2.0.0",
44
"description": "Simple lazy loading component built with react",
55
"main": "./lib/LazyLoad.js",
66
"files": [

0 commit comments

Comments
 (0)