main.rs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. use dioxus_core as dioxus;
  2. use dioxus_html_namespace as dioxus_elements;
  3. use dioxus_web::{prelude::*, WebsysRenderer};
  4. // mod filtertoggles;
  5. // mod recoil;
  6. // mod state;
  7. // mod todoitem;
  8. // mod todolist;
  9. static APP_STYLE: &'static str = include_str!("./style.css");
  10. fn main() {
  11. wasm_bindgen_futures::spawn_local(WebsysRenderer::start(|cx| {
  12. cx.render(rsx! {
  13. div {
  14. id: "app"
  15. // style { "{APP_STYLE}" }
  16. // list
  17. // todolist::TodoList {}
  18. // footer
  19. footer {
  20. class: "info"
  21. p {"Double-click to edit a todo"}
  22. p {
  23. "Created by "
  24. a { "jkelleyrtp", href: "http://github.com/jkelleyrtp/" }
  25. }
  26. p {
  27. "Part of "
  28. a { "TodoMVC", href: "http://todomvc.com" }
  29. }
  30. }
  31. }
  32. })
  33. }))
  34. }