react-perf-hoc

1.0.0 • Public • Published

React-perf-HOC

React HOC that retrieves first render and further updates in milliseconds.

Example usage

//SuspiciousComponent.js
import React, { Component } from 'react';
import sastre from 'react-perf-hoc';
 
class SuspiciousComponent  extends Component {
    constructor(props) {
      //internals.
    }
    // and go on...
}
 
export default sastre(SuspiciousComponent);

Simple Steps

import sastre from 'react-perf-hoc'. 2. export default sastre(MyComponent). 3. Run app and check console.

/react-perf-hoc/

    Package Sidebar

    Install

    npm i react-perf-hoc

    Weekly Downloads

    3

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • neomaxzero