Resource
data-hr-resource
Resource stands for unique identifier for resource where you want to measure reactions. You can pass item ids, page slugs or page titles. You need to follow one rule. You can't change resource because all existing reaction will remain connected to old resource.
⚠️
All reactions are linked to token
and resource
. After changing resource
users can add reactions again.
<div data-hr-token="<token>" data-hr-resource="123"></div>
or
<div
data-hr-token="<token>"
data-hr-resource="cool-post-about-happy-react"
></div>
Was this page helpful?
Happy React is loading...