Initial commit from Create Next App

This commit is contained in:
2022-08-13 11:29:32 -05:00
commit 8573d61066
24 changed files with 3172 additions and 0 deletions
View File
View File
View File
View File
View File
View File
+9
View File
@@ -0,0 +1,9 @@
import type { AppProps } from 'next/app'
const MyApp = ({ Component, pageProps }: AppProps) => {
return (
<Component {...pageProps} />
)
}
export default MyApp
+12
View File
@@ -0,0 +1,12 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from 'next'
type Data = {
message: string
}
export const hello = (req: NextApiRequest, res: NextApiResponse<Data>) => {
res.status(200).json({ message: 'Hello!' })
}
export default hello
+11
View File
@@ -0,0 +1,11 @@
import type { NextPage } from 'next'
const Home: NextPage = () => {
return (
<>
<h1>Next Js</h1>
</>
)
}
export default Home
View File
View File
View File