1import React, { useEffect } from 'react'
2import ReactDOM from 'react-dom'
3
4const App = () => {
5 // This effect runs once, after the first render
6 useEffect(() => {
7 document.title = "This is a title"
8 }, [])
9
10 return <h1>Hello, World!</h1>
11};