react-utterances
react-utterances is the react component for utterances that is a lightweight comments widget built on GitHub issues. To get started, checkout https://utteranc.es
Check out below:
- live demo
- live demo on sandbox
- real world use case in my blog
install
$ yarn add react-utterances
usage
utterances have 6 types of Blog Post<->Issue Mapping currently. react-utterances support all 6 types, check out below examples.
pathname
type:
const repo = 'github-namespace/project-name' { return <div> <h1>What is Lorem Ipsum?</h1> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry</p> <ReactUtterences repo=repo type='pathname' /> </div> ) }}
url
type. just changepathname
tourl
in above example:
- <ReactUtterences repo={repo} type={'pathname'} />+ <ReactUtterences repo={repo} type={'url'} />
- // TODO