fb81ecb2bd
Co-authored-by: atcastle <atcastle@gmail.com>
26 lines
532 B
JavaScript
26 lines
532 B
JavaScript
import Head from 'next/head'
|
|
|
|
function Home({ stars }) {
|
|
return (
|
|
<div className="container">
|
|
<Head>
|
|
<title>Create Next App</title>
|
|
<link rel="icon" href="/favicon.ico" />
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://fonts.googleapis.com/css2?family=Roboto:wght@700"
|
|
></link>
|
|
</Head>
|
|
|
|
<main>
|
|
<div>Next stars: {stars}</div>
|
|
</main>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
Home.getInitialProps = async () => {
|
|
return { stars: Math.random() * 1000 }
|
|
}
|
|
|
|
export default Home
|