Recommended way to change document.title based on dynamic content
Answered
Brown bear posted this in #help-forum
Brown bearOP
What I'm doing rn is below, and it works. Any reason to not do this?
return (
<>
<title>{`${anime.title}`}</title>
<div className="flex flex-col gap-y-6"></div>
</>
)1 Reply
@Brown bear What I'm doing rn is below, and it works. Any reason to not do this?
return (
<>
<title>{`${anime.title}`}</title>
<div className="flex flex-col gap-y-6"></div>
</>
)
No reasons to not do it. That is fine, react supports that
Answer