Skip to content

Commit d186e3e

Browse files
Update _app.tsx
App Container Deprecated https://github.com/vercel/next.js/blob/master/errors/app-container-deprecated.md Swapped container for fragments. Not sure if it was the best way to do it but it seems to work.
1 parent 1798d7e commit d186e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/_app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MyApp extends App {
2121
const { Component, pageProps } = this.props;
2222

2323
return (
24-
<Container>
24+
<>
2525
<Head>
2626
<title>AJ' Books</title>
2727
</Head>
@@ -33,7 +33,7 @@ class MyApp extends App {
3333
<Component {...pageProps} />
3434
</Grid>
3535
</ThemeProvider>
36-
</Container>
36+
</>
3737
);
3838
}
3939
}

0 commit comments

Comments
 (0)