react-rough
v2.3.0
Published
React Bindings for Rough.js
Downloads
282
Readme
Installation
- npm add react-rough
- npm add roughjs
Render a Rectangle on a canvas element
import ReactRough, { Rectangle } from 'react-rough';
render(
<ReactRough>
<Rectangle x={15} y={15} width={90} height={80} fill="red" />
</ReactRough>
);
Learn More
To learn more, go through our StoryBook.
Visit the Website
License
MIT