CommentThread

App

Generic threaded comments with replies, like counts, delete-own actions, and a composer. Domain-agnostic — pass comments + handlers.

With replies

Preview
  • AB
    Alice Brooks

    I think this feature would be great for the landing page.

    • Y
      You

      Agreed. I can open a PR.

  • MR
    Marcus Reed

    The mobile breakpoint should be reviewed as well.

Code
<CommentThread comments={comments} currentUserId="me" onReply={addComment} onLike={toggle} onDelete={remove} />

Empty state

Preview

No comments yet. Be the first to comment.

Code
<CommentThread comments={[]} onReply={addComment} />
Sourcemodules/app/CommentThread.tsx