JSFiddle - React, Tailwind, and code Playground
HTML
<div data-pcp-email="some text" data-pcp-order="some int" data-ref="some data"></div>
JavaScript
var data = $('div').data();
for(var key in data) {
if(key.indexOf('pcp') === 0) {
console.log(key + ' => ' + data[key]);
}
}