silverwolf-x's picture
download
raw
431 Bytes
import { useEffect, useState } from 'react'
const foo = (query) => query
export const FOO = foo('query')
const MyPage = () => {
const [isMounted, setMounted] = useState(false)
useEffect(() => {
setMounted(true)
}, [])
if (isMounted) {
return <p>client loaded</p>
}
return <p>server</p>
}
const getServerSideProps = async () => {
return { props: {} }
}
export default MyPage
export { getServerSideProps }

Xet Storage Details

Size:
431 Bytes
·
Xet hash:
e1d2bdcd2041c37da38ac18b99af90637fb6af057560cdb9041eec9eda206517

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.