Overview
useAddReaction is a low-level hook that adds a reaction to an entity or comment. For most use cases, use useReactionToggle instead — it handles toggling, optimistic updates, and state management automatically.
Requires an authenticated user.
Usage Example
Parameters
The type of the reaction target.
The ID of the entity or comment.
The reaction to add:
"upvote", "downvote", "like", "love", "wow", "sad", "angry", or "funny".Returns
The updated entity or comment with new
reactionCounts and userReaction.
