Is there a way to append IProp
's to HTML
?
Here's an example of what i'm trying to do:
foo :: forall p i. H.HTML p i -> H.HTML p i
foo myElement =
addProp (HP.id_ "SomeId") myElement
Where addProp
takes myElement
, gives it the Id
(or any other arbitrary property) and returns back this new element that is basically the same but has that new property added to it?
Or in other words, does this function addProp
exist in some fashion?