Skip to content

How can I use dataset of a tag? #256

Answered by Tao-VanJS
jolo-dev asked this question in Q&A
Discussion options

You must be logged in to vote

Try this:

const Tooltip = () => div({class: 'tooltip', "data-foo": 'my-bar'}, // results in error
  div({class: 'avatar'}),
  div({class: 'line'}),
  div({class: 'line'}),
)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jolo-dev
Comment options

Answer selected by Tao-VanJS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants