-
const Tooltip = () => div({class: 'tooltip', dataset: {foo: 'my-bar'}}, // results in error
div({class: 'avatar'}),
div({class: 'line'}),
div({class: 'line'}),
) |
Beta Was this translation helpful? Give feedback.
Answered by
Tao-VanJS
Jan 29, 2024
Replies: 1 comment 1 reply
-
Try this: const Tooltip = () => div({class: 'tooltip', "data-foo": 'my-bar'}, // results in error
div({class: 'avatar'}),
div({class: 'line'}),
div({class: 'line'}),
) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Tao-VanJS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this: