bugfix pull request for react-mermaid.
npm install react-mermaid-test-fix> A react component to display mermaid diagrams and flowcharts.
- Install with NPM - npm install --save react-mermaid
``javascript
var React = require('react');
var Mermaid = require('react-mermaid');
var Component = React.createClass({
render: function () {
return (
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
);
}
});
`
Property | Type | Argument | Default | Description
---------|----------|--------------|-----------|------------
name | string | | mermaid | name of the diagram/flowchart
react-mermaid is built using ES6. Run the following task to compile the src/ into dist/.
`bash``
npm run build