We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a7e7cb commit e0532a9Copy full SHA for e0532a9
src/Halogen/VDom/Types.purs
@@ -40,6 +40,10 @@ instance bifunctorVDom ∷ Bifunctor VDom where
40
bimap f g (Grafted a) = Grafted (bimap f g a)
41
bimap f g a = Grafted (graft (Graft f g a))
42
43
+-- | Replaces "widgets" in the `VDom` with the ability to turn them into other
44
+-- | `VDom` nodes.
45
+-- |
46
+-- | Using this function will fuse any `Graft`s present in the `VDom`.
47
renderWidget ∷ ∀ a w x. (w → VDom a x) → VDom a w → VDom a x
48
renderWidget f = case _ of
49
Text a → Text a
0 commit comments