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-utterancesUsage
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.