purescript-react / purescript-react-basic-dom

https://pursuit.purescript.org/packages/purescript-react-basic-dom
Apache License 2.0
11 stars 18 forks source link

_data documentation note #17

Open jamesdbrock opened 3 years ago

jamesdbrock commented 3 years ago

The _data :: Object String fields of the Props records are for HTML data attributes. The data- prefix will be added to the attribute, so for example

div' { _data: singleton "name" "value" }

will render as

<div data-name="value" />