File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,9 @@ const basePackage = `{
63
63
"name": "my-app",
64
64
"description": "",
65
65
"dependencies": {
66
- "next": "latest"
66
+ "next": "latest",
67
+ "react": "^15.4.2",
68
+ "react-dom": "^15.4.2"
67
69
},
68
70
"scripts": {
69
71
"dev": "next",
@@ -73,29 +75,28 @@ const basePackage = `{
73
75
}`
74
76
75
77
const basePage = `
76
-
77
78
import Head from 'next/head'
78
79
79
80
export default () => (
80
81
<div>
81
82
<Head>
82
83
<meta name='viewport' content='width=device-width, initial-scale=1'/>
83
- <style>{bodyStyles}</style>
84
84
</Head>
85
85
86
86
<img width='112' src='https://cloud.githubusercontent.com/assets/13041/19686250/971bf7f8-9ac0-11e6-975c-188defd82df1.png' alt='next.js' />
87
+
88
+ <style jsx global>{\`
89
+ html, body {
90
+ height: 100%
91
+ }
92
+
93
+ body {
94
+ display: flex;
95
+ align-items: center;
96
+ justify-content: center;
97
+ margin: 0;
98
+ }
99
+ \`}</style>
87
100
</div>
88
101
)
89
-
90
- const bodyStyles = \`
91
- html, body {
92
- height: 100%
93
- }
94
-
95
- body {
96
- display: flex;
97
- align-items: center;
98
- justify-content: center;
99
- }
100
- \`
101
102
`
You can’t perform that action at this time.
0 commit comments