File tree Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 1+ export function Login ( ) {
2+ return (
3+ < div >
4+ < h1 > Welcome to the App!</ h1 >
5+ < p > This is a simple React Router application.</ p >
6+ </ div >
7+ ) ;
8+ }
Original file line number Diff line number Diff line change 1- import { type RouteConfig , index } from "@react-router/dev/routes" ;
1+ import { type RouteConfig , index , route } from "@react-router/dev/routes" ;
22
3- export default [ index ( "routes/home.tsx" ) ] satisfies RouteConfig ;
3+ export default [
4+ index ( "routes/home.tsx" ) ,
5+ route ( "app/app" , "routes/app.tsx" ) ,
6+ ] satisfies RouteConfig ;
Original file line number Diff line number Diff line change 1+ import type { Route } from "./+types/app" ;
2+ import { Welcome } from "~/welcome/welcome" ;
3+
4+ export function meta ( { } : Route . MetaArgs ) {
5+ return [
6+ { title : "New React Router App" } ,
7+ { name : "description" , content : "Welcome to React Router!" } ,
8+ ] ;
9+ }
10+
11+ export default function Home ( ) {
12+ return < Welcome /> ;
13+ }
Original file line number Diff line number Diff line change 11import type { Route } from "./+types/home" ;
2- import { Welcome } from "../welcome/welcome " ;
2+ import { Login } from "~/login/login " ;
33
44export function meta ( { } : Route . MetaArgs ) {
55 return [
@@ -9,5 +9,5 @@ export function meta({}: Route.MetaArgs) {
99}
1010
1111export default function Home ( ) {
12- return < Welcome /> ;
12+ return < Login /> ;
1313}
You can’t perform that action at this time.
0 commit comments