Function Meta

Source
pub fn Meta(props: MetaProps) -> Element
Expand description

Render a meta tag into the head of the page.

ยงExample

fn RedirectToDioxusHomepageWithoutJS() -> Element {
    rsx! {
        // You can use the meta component to render a meta tag into the head of the page
        // This meta tag will redirect the user to the dioxuslabs homepage in 10 seconds
        document::Meta {
            http_equiv: "refresh",
            content: "10;url=https://dioxuslabs.com",
        }
    }
}

Any updates to the props after the first render will not be reflected in the head.