parent
1c69ccab23
commit
72c2c5fb53
@ -1,6 +1,26 @@
|
||||
import getItems from "./getItems";
|
||||
|
||||
export default async function Page({ children }) {
|
||||
const resultList = await getItems;
|
||||
return (
|
||||
<h1>
|
||||
</h1>
|
||||
<div>
|
||||
<h1>hi</h1>
|
||||
<div>
|
||||
{resultList.items.map((item, i) => (
|
||||
<div key={i}>
|
||||
// Show all things which you want
|
||||
<br/>
|
||||
{i}
|
||||
<br/>
|
||||
{item.title}
|
||||
<br/>
|
||||
{i}
|
||||
<br/>
|
||||
{item.description}
|
||||
</div>
|
||||
))
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in new issue