import React from 'react'; function Main() { const [seconds , setSeconds] = React.useState(0); React.useEffect(() => { setInterval(() => { setSeconds(seconds + 1) },1000) },[]) return(

you've been here for {seconds}

) } export default Main;