For further actions, you may consider blocking this person and/or reporting abuse
For further actions, you may consider blocking this person and/or reporting abuse
This community will be migrating to a dedicated subforem in the near future. We are excited to announce a new take on the CodeNewbie Community soon! Email support@forem.com if you have any questions.
Top comments (1)
Definitionally:
data-attributes don't do much, but they are the standard place one might put data that could accompany an element.When information is sent from the server, we might store some data on a root
divand then with a JavaScript framework like React, render that div on the client and seek something likedata-rowsto find out what information should be in the rows in a list within the element. This is one of many ways we might pass data in, we might do it via afetchrequest to the server, but when we get the data we may want somewhere in the HTML to store it.data-is there to be that place.