visual-box
v1.0.8
Published
Draw a box on the re-rendering component.
Downloads
12
Maintainers
Readme
Components wrapped in visual-box change color when rendering occurs. When you wrap a child component, you know if the child component is rendered simultaneously when rendering occurs in the parent component.
Visual Box is available as a package on NPM & YARN.
# NPM
npm install --save-dev visual-box
# Yarn
yarn add --dev visual-box
import * as React from 'react';
import Box from 'visual-box';
function Button({ children }) {
return <button>{children}</button>;
}
export default Box(Button);
// → export default Button;