Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed examples. #7

Merged
merged 1 commit into from
Oct 15, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ Every `import` you declare gets bundled and served with each page

```jsx
import React from 'react'
import cowsay from 'cowsay'
import cowsay from 'cowsay-browser'
export default () => (
<pre>{ cowsay('hi there!') }</pre>
<pre>{ cowsay({ text: 'hi there!' }) }</pre>
)
```

Expand All @@ -46,11 +46,11 @@ We use [Aphrodite](https://github.com/Khan/aphrodite) to provide a great built-i
import React from 'react'
import { css, StyleSheet } from 'next/css'

export default () => {
export default () => (
<div className={ css(styles.main) }>
Hello world
</div>
})
)

const styles = StyleSheet.create({
main: {
Expand All @@ -70,11 +70,13 @@ We expose a built-in component for appending elements to the `<head>` of the pag
import React from 'react'
import Head from 'next/head'
export default () => (
<Head>
<title>My page title</title>
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
</Head>
<p>Hello world!</p>
<div>
<Head>
<title>My page title</title>
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
</Head>
<p>Hello world!</p>
</div>
)
```

Expand Down