JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q48403F
  • License MIT

React HOC for Utterance comment widget

Package Exports

  • with-utterances

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (with-utterances) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

withUtterances

withUtterances is a React HOC for Utterance.

Installation

npm i with-utterances
yarn add with-utterances

Usage

import withUtterances to the component that you want to show utterance comment widget.

import withUtterances from 'with-utterances'


class PostPage extends React.Component {
  render() {
      return (
      <PostComponent />
    )
  }
}

export default withUtterances(PostPage, 'YOUR_REPO', {issue-term})

please pass your github repo and issue-term as props.
if you are using gatsby.js and issue-term is not provided. pathname will be default issue-term.