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
>> is our js_sys::Closure. Stored this way to allow us to store any Closure regardless of the types of its arguments. - 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 generateVirtualNode
’s.
Traits
- A trait with common functionality for rendering front-end views.