Alex Sidorenko

Change page title in React without libraries

June 26, 2021

👇

const About = () => {

  useEffect(() => {
    document.title = `About`
  }, []);

  return ...
}

Want to get better at modern React?

Subscribe to get one short article delivered to your inbox every week

One article a week. No spam.
Unsubscribe any time