source: pages/star-wars/@id/+Page.tsx@ fdd776b

main
Last change on this file since fdd776b 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 
1import { useData } from "vike-react/useData";
2import type { Data } from "./+data.js";
3
4export 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.