The default components included in Comments are a great way to start building your application. With these components you can render entire threads, along with a comment composer.
Thread component renders a thread and its contained comments, as well
a composer for adding new comments to thread.
The best way to get started is to import the
useThreads hook, and loop
through each thread in the current room.
This will render a list containing every thread in the room, each with its own composer for adding new comments.
Composer component renders a rich-text composer that’s used to create
new threads. It can also be used to add comments to an existing thread, or to
Get started by importing the component. By default, it’ll create a new thread when the form’s submitted.
Composer can also be used in other ways:
Start by importing the component, and passing the comment to it.
It’s possible to style and localize the default components:
Learn more under styling and customization.