use dioxus_core::prelude::*; fn main() { // let mut s = Context { props: &() }; // let g = Component(&mut s); } // struct CompState { // tasks: Vec<()>, // } // enum Actions { // Add, // MoveUp, // MoveDown, // Remvoe, // } // static Component: FC<()> = |ctx| { // let (tasks, dispatch) = use_reducer( // ctx, // || CompState { tasks: Vec::new() }, // |state, action: Actions| match action { // Actions::Add => state, // Actions::MoveUp => state, // Actions::MoveDown => state, // Actions::Remvoe => state, // }, // ); // let tasklist = { (0..10).map(|f| html! {
}) }.collect::