function LikeButton
LikeButton(unnamed 0: LikeButtonProps): React.JSX.Element

Renders a comment's like button and its count. Clicking the count, when it isn't zero, opens the list of likers (GET /api/comments/:id/likers) instead.

Parameters

Return Type

React.JSX.Element

Usage

import { LikeButton } from "src/components/social/LikeButton.tsx";