many.rs 599 B

12345678910111213141516171819202122
  1. use dioxus_core as dioxus;
  2. use dioxus_core::prelude::*;
  3. use dioxus_web::WebsysRenderer;
  4. fn main() {
  5. wasm_logger::init(wasm_logger::Config::new(log::Level::Debug));
  6. console_error_panic_hook::set_once();
  7. log::info!("hello world");
  8. wasm_bindgen_futures::spawn_local(WebsysRenderer::start(Example));
  9. }
  10. static Example: FC<()> = |cx| {
  11. cx.render(rsx! {
  12. div {
  13. span {
  14. class: "px-2 py-1 flex w-36 mt-4 items-center text-xs rounded-md font-semibold text-yellow-500 bg-yellow-100"
  15. "DUE DATE : 18 JUN"
  16. }
  17. }
  18. })
  19. };