euv-example 0.26.11

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
use super::*;

/// Creates a click event handler that navigates to the home page.
///
/// # Returns
///
/// - `Option<Rc<dyn Fn(Event)>>` - A click handler that navigates to "/".
pub(crate) fn not_found_on_go_home() -> Option<Rc<dyn Fn(Event)>> {
    Some(Rc::new(move |_: Event| {
        Router::navigate("/");
    }))
}