Neighbourhood Party Manager

    atomico-use-remark
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.0 • Public • Published

    atomico-use-remark

    npm npm Codecov Bundle Size Conventional Commits

    Atomico hook for interacting with Remark.

    Installation

    Install using npm:

    $ npm install atomico-use-remark

    Or use in browsers with Skypack:

    <script type="module">
      import { useRemark } from "https://cdn.skypack.dev/atomico-use-remark";
    </script>

    Usage

    Use the useRemark() hook to render some Markdown content in your component:

    import { c } from "atomico";
    import { useRemark } from "atomico-use-remark";
    
    function component() {
      const [tree, setContent] = useRemark(`
        # Hello World!
      `);
    
      return <host>{tree}</host>;
    }
    
    customElements.define("hello-world", c(component));

    License

    Copyright 2022 Kepler Sticka-Jones. Licensed ISC.

    Install

    npm i atomico-use-remark

    DownloadsWeekly Downloads

    24

    Version

    1.1.0

    License

    ISC

    Unpacked Size

    50.4 kB

    Total Files

    21

    Last publish

    Collaborators

    • keplersj