visual-box
Version:
Draw a box on the re-rendering component.
58 lines (35 loc) • 1.15 kB
Markdown
<div align="center">
<h1>Visual Box</h1>
<p>Provides visual rendering status of components.</p>
</div>
---
<br />
[](https://www.npmjs.com/package/visual-box)
<h2>Purpose</h2>
Components wrapped in visual-box change color when rendering occurs. <br />
When you wrap a child component, you know if the child component is rendered simultaneously when rendering occurs in the parent component.
<h2>Installation</h2>
Visual Box is available as a package on NPM & YARN.
```
npm install --save-dev visual-box
yarn add --dev visual-box
```
<h2>Examples</h2>
```js
import * as React from 'react';
import Box from 'visual-box';
function Button({ children }) {
return <button>{children}</button>;
}
export default Box(Button);
// → export default Button;
```
- [**CODE-SANDBOX**](https://codesandbox.io/s/github/o-henry/react-performance)
<br/>
<div align="center">

</div>
<h2>LICENSE</h2>
[](https://github.com/o-henry/visual-box/blob/master/LICENSE)