react-tooltip
react-tooltip copied to clipboard
Add `tooltip` to every `data-` attribute
data-type
and such type of attributes can be reserved for app. It would be great to separate attributes for this library from other libraries' attributes. Of course, it is better to not use data-type
at all and name it like more describing why it is used data-modal-type
, data-smth-type
and so on. Reason:
data-type
on button? 🤔 Why is it used? Is it a type of a button? Is it a...
So I offer to rename attributes this way:
-
data-type
->data-tooltip-type
-
data-effect
->data-tooltip-effect