pub fn use_title(title: String)Expand description
A side-effect hook that sets title of the page and restore previous title when unmount.
Example
#[function_component(Title)]
fn title() -> Html {
use_title("This is an awesome title".to_string());
html! {
<>
</>
}
}