main.rs 988 B

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