mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This updates this initial PR here https://github.com/vercel/next.js/pull/18146 to resolve merge conflicts and updates tests since we aren't able to update that PR itself. ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. Closes: https://github.com/vercel/next.js/pull/18146
27 lines
532 B
JavaScript
27 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
|