File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ Every `import` you declare gets bundled and served with each page
30
30
31
31
``` jsx
32
32
import React from ' react'
33
- import cowsay from ' cowsay'
33
+ import cowsay from ' cowsay-browser '
34
34
export default () => (
35
- < pre> { cowsay (' hi there!' ) }< / pre>
35
+ < pre> { cowsay ({ text : ' hi there!' } ) }< / pre>
36
36
)
37
37
```
38
38
@@ -46,11 +46,11 @@ We use [Aphrodite](https://github.com/Khan/aphrodite) to provide a great built-i
46
46
import React from ' react'
47
47
import { css , StyleSheet } from ' next/css'
48
48
49
- export default () => {
49
+ export default () => (
50
50
< div className= { css (styles .main ) }>
51
51
Hello world
52
52
< / div>
53
- } )
53
+ )
54
54
55
55
const styles = StyleSheet .create ({
56
56
main: {
@@ -70,11 +70,13 @@ We expose a built-in component for appending elements to the `<head>` of the pag
70
70
import React from ' react'
71
71
import Head from ' next/head'
72
72
export default () => (
73
- < Head>
74
- < title> My page title< / title>
75
- < meta name= " viewport" content= " initial-scale=1.0, width=device-width" / >
76
- < / Head>
77
- < p> Hello world! < / p>
73
+ < div>
74
+ < Head>
75
+ < title> My page title< / title>
76
+ < meta name= " viewport" content= " initial-scale=1.0, width=device-width" / >
77
+ < / Head>
78
+ < p> Hello world! < / p>
79
+ < / div>
78
80
)
79
81
```
80
82
You can’t perform that action at this time.
0 commit comments