-
Are they identical? dioxus_desktop::launch_cfg(
App,
dioxus_desktop::Config::new()
.with_custom_head(r#"<link rel="stylesheet" href="public/tailwind.css">"#.to_string())) render!(
link {
rel: "stylesheet",
href: "public/tailwind.css"
} Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
ealmloff
Feb 1, 2024
Replies: 1 comment
-
In dioxus, you components all render into the Some relevant discussions:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kzhui125
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In dioxus, you components all render into the
<body>
element which contains the content of the page.<link>
elements should be placed in the<head>
element instead which contains some metadata/resources for the page. The first code snippet correctly places it in the head, the second code snippet will place the link somewhere in the bodySome relevant discussions: