UNPKG
@nadeshikon/plugin-nextjs
Version:
latest (4.29.5-4)
4.29.5
4.29.5-4
4.29.5-3
4.29.5-2
4.29.5-1
Run Next.js seamlessly on Netlify
github.com/netlify/next-runtime
netlify/next-runtime
@nadeshikon/plugin-nextjs
/
test
/
e2e
/
app-dir
/
app-rendering
/
app
/
ssr-only
/
nested
/
page.js
18 lines
(14 loc)
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import
{ use }
from
'react'
async
function
getData
(
) {
return
{
message
:
'hello from page'
, } }
export
default
function
nestedPage
(
props
) {
const
data =
use
(
getData
())
return
(
<>
<
p
id
=
"page-message"
>
{data.message}
</
p
>
</>
) }