First, embed the script in your page. It will load the latest version of the editor.
<script src="https://unpkg.com/@roudanio/awesome-comment@latest/dist/awesome-comment.umd.js"></script>
Then, add the Comment component to your page. It will be rendered in the container element.
AwesomeComment.init( dom, // container element, or DOM selector { postId, // unique identifier for the page baseUrl, // base URL for the API domain, // auth0 domain clientId, // auth0 client id locale, // locale, like `cn`, `en`, default to navigator.language }, );
Finally, you can use the editor in your page.