Make http a required feature for a number of examples

This commit is contained in:
Jonathan Kelley committed 2024-01-18 12:50:25 -08:00
1 parent 84e82fc3e2
commit 3506b3ea72
4 files changed
+24 -30

No files matched your search

-2
View File
@@ -3,8 +3,6 @@ use dioxus_desktop::{tao::dpi::LogicalSize, Config, WindowBuilder};
use dioxus_router::prelude::*;
fn main() {
env_logger::init();
LaunchBuilder::desktop()
.cfg(
Config::new().with_window(
+3 -3
View File
@@ -71,19 +71,19 @@ fn NavBar() -> Element {
#[component]
fn Home() -> Element {
log::debug!("rendering home {:?}", current_scope_id());
println!("rendering home {:?}", current_scope_id());
rsx! { h1 { "Home" } }
}
#[component]
fn BlogList() -> Element {
log::debug!("rendering blog list {:?}", current_scope_id());
println!("rendering blog list {:?}", current_scope_id());
rsx! { div { "Blog List" } }
}
#[component]
fn BlogPost(post: String) -> Element {
log::debug!("rendering blog post {}", post);
println!("rendering blog post {}", post);
rsx! {
div {