An open API service indexing awesome lists of open source software.

https://github.com/neomaxzero/react-perf-hoc

React HOC that retrieves first render and further updates in milliseconds.
https://github.com/neomaxzero/react-perf-hoc

hoc performance react

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

          

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

## Example usage

```javascript
//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

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