euv-core 0.3.13

A declarative, cross-platform UI framework for Rust with virtual DOM, reactive signals, and HTML macros for WebAssembly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::*;

/// Manages the rendering of virtual DOM nodes to the real DOM.
///
/// Maintains a mapping between virtual nodes and real DOM elements,
/// and handles creation, diffing, and patching of the DOM tree.
#[derive(Debug)]
pub struct Renderer {
    /// The root DOM element.
    pub(crate) root: Element,
    /// The current virtual DOM tree.
    pub(crate) current_tree: Option<VirtualNode>,
}