usecrate::*;/// Reactive state for a todo list feature.
#[derive(Clone, Copy, Data, New)]pubstructUseTodoList{/// The list of todo items.
#[get(pub,type(copy))]pubitems:Signal<Vec<String>>,
/// The new item input text.
#[get(pub,type(copy))]pubnew_item:Signal<String>,
/// The validation error message for add operation.
#[get(pub,type(copy))]pubadd_error:Signal<String>,
}