csprance / csprance-comments

Comment setup using github and utterances for csprance.com portfolio
0 stars 0 forks source link

blog/comments-using-utterances #5

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Comments using utterances - Chris Sprance's Portfolio

Personal portfolio for Chris Sprance. A digital artist and developer.

https://csprance.com/blog/comments-using-utterances

csprance commented 3 years ago

This is what a comment looks like and this is all managed inside of a GitHub repository I control and can manage easily.

This is really easy cool stuff!

csprance commented 3 years ago

I can also comment right on GitHub!

mathiasrscom commented 3 years ago
rootElm.current!.appendChild(utterances);

The appendChild seems to provide the following error: "Property 'appendChild' does not exist on type 'unknown'.ts(2339)"

Any suggestions to get it to work?

mathiasrscom commented 3 years ago

I got it to work using:

React.createRef<HTMLDivElement>();

Instead of:

React.createRef();