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
resource. After changing resource
users can add reactions again.
<div data-hr-token="<token>" data-hr-resource="123"></div>
<div data-hr-token="<token>" data-hr-resource="cool-post-about-happy-react" ></div>