EN
React - set web page title
0 points
In this article, we would like to show you how to set the web page title in React.
Quick solution:
Inside the index.html
file set the title between <title>
tags in the <head>
section.
xxxxxxxxxx
1
2
<head>
3
<title>Example title</title>
4
</head>
5
<body>
6
<div id="root"></div>
7
</body>
8
</html>
In this example, we change the React app title inside index.html
file placed in public/
directory.

Result:
