euv-example 0.3.12

An example application demonstrating the euv UI framework with reactive signals, custom components, and WebAssembly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::*;

/// Reactive state for a lifecycle demo feature.
#[derive(Clone, Copy, Data, New)]
pub struct UseLifecycle {
    /// The render count.
    #[get(pub, type(copy))]
    #[set(pub)]
    pub render_count: Signal<i32>,
    /// The event log entries.
    #[get(pub, type(copy))]
    #[set(pub)]
    pub logs: Signal<Vec<String>>,
}