dioxus
dioxus copied to clipboard
Change name for document::Link
Instead of using such long dependencies in the code
document::Meta { name: "description", content: "<model-viewer> template" }
document::Link { rel: "stylesheet", href: TAILWIND_STYLE }
document::Script { src: "https://cdn.tailwindcss.com" }
document::Script {
It is better to use short names, indicating dependency with use
use dioxus::document::*;
Meta { name: "description", content: "<model-viewer> template" }
Link { rel: "stylesheet", href: TAILWIND_STYLE }
Script { src: "https://cdn.tailwindcss.com" }
But in that case, the document::Link dependency conflicts with the existing Link
Dioxus version: dioxus 0.6.0-alpha.3 Rust version: rustc 1.81.0 (eeb90cda1 2024-09-04) OS info: Win11 App platform: web