const App = () => {
const [title, setTitle] = useState('Initial Title')
useEffect(() => {
setTitle('Use Effect')
}, [])
return <h1>{title}</h1>
}
const App = () => {
const [title, setTitle] = useState('Initial Title')
useEffect(() => {
setTitle('Use Effect')
}, [])
return <h1>{title}</h1>
}