How can i add dynamic meta description in the head #136
Replies: 1 comment
-
Something like this: useEffect(() => {
const meta = document.createElement("meta");
meta.name = "description";
meta.content = "Some description";
document.head.appendChild(meta);
return () => {
document.head.removeChild(meta)
}
}, []) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please I would like to know how I can add dynamic meta description in the head
Beta Was this translation helpful? Give feedback.
All reactions