useUpvoteComment
Overview
TheuseUpvoteComment
hook provides a way to upvote an comment.
Usage Example
Parameters & Returns
Parameters
TheupvoteComment
function returned by the hook accepts a single object with the following field:
The ID of the comment to be upvoted.
Returns
The function returns aPromise<Comment>
representing the API response:
The updated comment after it is successfully upvoted.