File tree Expand file tree Collapse file tree 5 files changed +21
-15
lines changed Expand file tree Collapse file tree 5 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 1
- import type { LinksFunction , MetaFunction } from "@remix-run/node" ;
1
+ import type { LinksFunction } from "@remix-run/node" ;
2
2
import {
3
3
Links ,
4
4
LiveReload ,
@@ -14,16 +14,12 @@ export const links: LinksFunction = () => [
14
14
{ rel : "stylesheet" , href : stylesheet } ,
15
15
] ;
16
16
17
- export const meta : MetaFunction = ( ) => ( {
18
- charset : "utf-8" ,
19
- title : "New Remix App" ,
20
- viewport : "width=device-width,initial-scale=1" ,
21
- } ) ;
22
-
23
17
export default function App ( ) {
24
18
return (
25
19
< html lang = "en" >
26
20
< head >
21
+ < meta charSet = "utf-8" />
22
+ < meta name = "viewport" content = "width=device-width,initial-scale=1" />
27
23
< Meta />
28
24
< Links />
29
25
</ head >
Original file line number Diff line number Diff line change
1
+ import type { V2_MetaFunction } from "@remix-run/node" ;
2
+
3
+ export const meta : V2_MetaFunction = ( ) => [ { title : "New Remix App" } ] ;
4
+
5
+ export default function Index ( ) {
6
+ return < h1 className = "text-6xl font-bold text-red-700" > Hello World!</ h1 > ;
7
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
"typecheck" : " tsc"
9
9
},
10
10
"dependencies" : {
11
- "@remix-run/node" : " ~1.14.2 " ,
12
- "@remix-run/react" : " ~1.14.2 " ,
13
- "@remix-run/serve" : " ~1.14.2 " ,
11
+ "@remix-run/node" : " ~1.16.0 " ,
12
+ "@remix-run/react" : " ~1.16.0 " ,
13
+ "@remix-run/serve" : " ~1.16.0 " ,
14
14
"isbot" : " ^3.6.5" ,
15
15
"react" : " ^18.2.0" ,
16
16
"react-dom" : " ^18.2.0"
17
17
},
18
18
"devDependencies" : {
19
- "@remix-run/dev" : " ~1.14.2 " ,
20
- "@remix-run/eslint-config" : " ~1.14.2 " ,
19
+ "@remix-run/dev" : " ~1.16.0 " ,
20
+ "@remix-run/eslint-config" : " ~1.16.0 " ,
21
21
"@types/react" : " ^18.0.25" ,
22
22
"@types/react-dom" : " ^18.0.8" ,
23
23
"eslint" : " ^8.27.0" ,
Original file line number Diff line number Diff line change 1
1
/** @type {import('@remix-run/dev').AppConfig } */
2
2
module . exports = {
3
+ future : {
4
+ v2_errorBoundary : true ,
5
+ v2_meta : true ,
6
+ v2_normalizeFormMethod : true ,
7
+ v2_routeConvention : true ,
8
+ } ,
3
9
ignoredRouteFiles : [ "**/.*" ] ,
4
10
tailwind : true ,
5
11
// appDirectory: "app",
You can’t perform that action at this time.
0 commit comments