Make http a required feature for a number of examples
This commit is contained in:
4 files changed
+24
-30
No files matched your search
@@ -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(
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user