/react-shaky

Shaky Diagram Component

Primary LanguageJavaScript

React Shaky Diagram

Build Status npm version

Use this component to draw a shaky diagram. Code of drawing shaky diagram is ported from moe-js and shaky.coffee.

Usage

import ShakyCanvas from 'react-shaky';

const canvas = (
  <ShakyCanvas>
    {
      `
      +----+  +----+
      |V8  |  |    |
      |   *+--+> JS|
      +----+  +----+`
    }
  </ShakyCanvas>
);

ReactDOM.render(canvas, document.getElementById('shaky'));

Reference

Shaky diagramming by mraleph