Get unlimited public & private packages + team-based management with npm Teams.Learn more »

defer-render-hoc

0.3.0 • Public • Published

defer-render-hoc

Defer expensive react rendering with rAF


Install

$ npm install defer-render-hoc --save

Usage

import React, { Component } from 'react'
import DeferRender from 'defer-render-hoc'
 
class RandomComp extends Component {
  ...
 
  render () {
    const { scroll } = this.props
 
    ...
  }
}
 
export default DeferRender(RandomComp)

Demo

See this CodeSandbox for a demo.

MIT © Jack Hanford

Install

npm i defer-render-hoc

DownloadsWeekly Downloads

552

Version

0.3.0

License

MIT

Last publish

Collaborators

  • avatar