HTML data attributes are a standard part of HTML and provide a way to add custom attributes to HTML elements. They can be accessed using the dataset property in JavaScript, making it easy to retrieve and manipulate the values. DEV, a Rails monolith with Preact in the front-end, heavily utilizes data attributes for its data store, instead of using a state management library like Redux or Zustand.
Table of contents
DescriptionWhat type of PR is this? (check all applicable)Related Tickets & DocumentsMobile & Desktop Screenshots/RecordingsAdded tests?Added to documentation?[optional] Are there any post-deployment tasks we need to perform?[optional] What gif best describes this PR or how it makes you feel?2 Comments
Sort: