File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff 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```
1213npm 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' ;
1920import LazyLoad from ' react-lazy-load' ;
2021
21- class MyComponent {
22+ class MyComponent extends Component {
2223 render () {
2324 return (
2425 < LazyLoad>
Original file line number Diff line number Diff line change 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" : [
You can’t perform that action at this time.
0 commit comments