purescript-react/purescript-react-basic-dom

_data documentation note

jamesdbrock opened this issue · 0 comments

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" />