Fork me on GitHub
#reagent
<
2016-12-20
>
tom17:12:54

How does one add an arbitrary attribute to an element? For example I want <div data-something="whatever"></div> and I tried [:div {:data-something "whatever"}] but didn't get the effect I hoped for.

metametadata18:12:46

@tom [:div {:data-foo "bar"} ... worked for me - I can see the attribute in the Chrome's DOM inspector

pesterhazy22:12:23

@tom, yup that should work