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.
- Host: GitHub
- URL: https://github.com/neomaxzero/react-perf-hoc
- Owner: neomaxzero
- Created: 2017-02-06T23:45:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-26T10:59:55.000Z (almost 9 years ago)
- Last Synced: 2025-03-09T03:34:53.110Z (over 1 year ago)
- Topics: hoc, performance, react
- Language: JavaScript
- Size: 7.81 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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```.