Data attributes give you the ability to specify custom attributes on any elements with the HTML of your Lightning Web Component. In this quick take, we will take a list of contacts and understand how data attributes can help us identify the clicked element and act on the data.
Check out the code on github: https://github.com/schandlergarcia/lwc-element-explorer
Learn more about Data Attributes: https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes
Track: BeatFort – Rampant Sunrise
Music provided by Ninety9Lives
Stream / Free Download: 99l.tv/rampantsunriseYU