Module

Panda.Bootstrap

Package
purescript-panda
Repository
i-am-tom/purescript-panda

#bootstrap Source

bootstrap :: forall event state update eff. Document -> Application (FX eff) update state event -> Eff (FX eff) { element :: Node, system :: EventSystem (FX eff) update state event }

Given an application, produce the DOM element and the system of events around it. This is mutually recursive with the render function.

#render Source

render :: forall event state update eff. Document -> Component (FX eff) update state event -> Eff (FX eff) { element :: Node, system :: EventSystem (FX eff) update state event }

Given a component, render the DOM node, and set up the event system.