Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

atomico-use-remark

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atomico-use-remark

Atomico hook for interacting with Remark

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
24
-11.11%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

atomico

FAQs

Package last updated on 15 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts