main
|
Last change
on this file since 66bf4fd was 8ee4553, checked in by Bati <no-reply@…>, 7 months ago |
|
scaffold Vike app with Bati
|
-
Property mode
set to
100644
|
|
File size:
352 bytes
|
| Line | |
|---|
| 1 | import { useData } from "vike-react/useData";
|
|---|
| 2 | import type { Data } from "./+data.js";
|
|---|
| 3 |
|
|---|
| 4 | export default function Page() {
|
|---|
| 5 | const { movie } = useData<Data>();
|
|---|
| 6 | return (
|
|---|
| 7 | <>
|
|---|
| 8 | <h1>{movie.title}</h1>
|
|---|
| 9 | Release Date: {movie.release_date}
|
|---|
| 10 | <br />
|
|---|
| 11 | Director: {movie.director}
|
|---|
| 12 | <br />
|
|---|
| 13 | Producer: {movie.producer}
|
|---|
| 14 | </>
|
|---|
| 15 | );
|
|---|
| 16 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.