property LikeButtonProps.onLike

Called with count, which WSContext needs until it has a live count.

Type

(
commentId: string,
shownCount?: number
) => void

Usage

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