Check out example codes for "change the title in html using". It will help you in understanding the concepts better.

Code Example 1

document.title = "My New Page Title";

Code Example 2

<title>This is the title</title>

Code Example 3

document.title = "My New Page Title"; //change/set page title in JavaScript

Learn ReactJs, React Native from akashmittal.com