Change title #2960
Answered
by
futursolo
DenuxPlays
asked this question in
Q&A
Change title
#2960
-
Hey, |
Beta Was this translation helpful? Give feedback.
Answered by
futursolo
Nov 12, 2022
Replies: 1 comment 3 replies
-
You can set the title in an effect hook of that page. #[function_component]
fn PageA() -> Html {
use_effect_with_deps(|_| {
gloo::utils::document().set_title("Page A");
}, ());
html!{ ... }
} There are also third party libraries that provides manipulation of elements in |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
DenuxPlays
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can set the title in an effect hook of that page.
There are also third party libraries that provides manipulation of elements in
<head></head>
like (bounce::helmet
).