0.1.4 • Published 3 years ago

mermaid2react v0.1.4

Weekly downloads
64
License
SEE LICENSE IN LI...
Repository
github
Last release
3 years ago

mermaid2react

npm install mermaid2react

For SSR and backend rendering, it's not necessary to load mermaid js. Additionally, webpack and friends can create issues when importing the library into your package.

Hence, this repo was born, which uses load-script to dynamically load mermaid from a CDN.

Usage

import { Mermaid } from 'mermaid2react';

export const YourComponent = () => {
    return (
        <Mermaid chart={`
graph TD
    A[AuthOneTimeToken] -->|password| B(Verify)
    B --> C{matches?}
    C -->|yes| D[return token]
    C -->|no| E[return false]
        `} />
    );
}
0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago