Creates a Page
creates a web page by kagura(nusa).
Mounts Html to Real-DOM
kagura::Runtime
needs node with implements UpdateNode + RenderNode<VecDeque<FutureMsg>> + 'static
. Therefore, a renderer is needead to render Html to real-DOM, and one of the renderer is BasicDomNode
.
BasicDomNode
needs two arguments. One is web_sys::Node
as mount point. Another is a function which retuns Vec<Html>
. The argument for this function will be used when you mount components to Html
.
src/lib.rs
to View Page
start wabpack-dev-server:
access to: localhost:8080
Last updated