Module percy_dom::prelude [−][src]
Expand description
Exports structs and macros that you’ll almost always want access to in a virtual-dom powered application
Macros
Used to generate VirtualNode’s from a TokenStream.
Structs
A handle to both a closure in Rust as well as JS closure which will invoke the Rust closure.
Box<dyn AsRef
An iterator that moves out of a vector.
Used by the html! macro for all braced child nodes so that we can use any type
that implements Into
Used for keeping a real DOM node up to date based on the current VirtualNode and a new incoming VirtualNode that represents our latest DOM state.
Enums
When building your views you’ll typically use the html!
macro to generate
VirtualNode
’s.
Traits
A trait with common functionality for rendering front-end views.