utterances-react

React component for utterances

Usage no npm install needed!

<script type="module">
  import utterancesReact from 'https://cdn.skypack.dev/utterances-react';
</script>

README

utterances-react

npm version GitHub version

This is React component for utterances

Install

# npm
$ npm i utterances-react
# yarn
$ yarn add utterances-react

Usage

import Utterances from "utterances-react"

export default ({ data }) => {
  return (
    <Utterances
      repo="wicksome/utterances-react"
      issueTerm="pathname"
      label=""
      theme="github-light"
      crossorigin="anonymous"
      async={false}
      style={`
      & .utterances {
        max-width: 950px;
      }
    `}
    />
  )
}

License

MIT