mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
13 lines
268 B
JavaScript
13 lines
268 B
JavaScript
import React, { useEffect, useState } from 'react'
|
|
|
|
const IndexPage = () => {
|
|
const [loaded, setLoaded] = useState(false)
|
|
useEffect(() => {
|
|
setLoaded(true)
|
|
}, [])
|
|
|
|
return <h1>Hello {loaded && <span id="world">World</span>}</h1>
|
|
}
|
|
|
|
export default IndexPage
|