1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Update README.md

This commit is contained in:
Guillermo Rauch 2016-12-16 12:23:32 -08:00 committed by GitHub
parent 8abcb81ec3
commit 289feeda43

View file

@ -54,7 +54,6 @@ To see how simple this is, check out the [sample app - nextgram](https://github.
Every `import` you declare gets bundled and served with each page Every `import` you declare gets bundled and served with each page
```jsx ```jsx
import React from 'react'
import cowsay from 'cowsay-browser' import cowsay from 'cowsay-browser'
export default () => ( export default () => (
@ -71,7 +70,6 @@ We use [glamor](https://github.com/threepointone/glamor) to provide a great buil
Glamor's [HowTo](https://github.com/threepointone/glamor/blob/master/docs/howto.md) shows converting various CSS use cases to Glamor. See Glamor's [API docs](https://github.com/threepointone/glamor/blob/master/docs/api.md) for more details. Glamor's [HowTo](https://github.com/threepointone/glamor/blob/master/docs/howto.md) shows converting various CSS use cases to Glamor. See Glamor's [API docs](https://github.com/threepointone/glamor/blob/master/docs/api.md) for more details.
```jsx ```jsx
import React from 'react'
import css from 'next/css' import css from 'next/css'
export default () => ( export default () => (
@ -100,7 +98,6 @@ Create a folder called `static` in your project root directory. From your code y
We expose a built-in component for appending elements to the `<head>` of the page. We expose a built-in component for appending elements to the `<head>` of the page.
```jsx ```jsx
import React from 'react'
import Head from 'next/head' import Head from 'next/head'
export default () => ( export default () => (
<div> <div>
@ -153,7 +150,6 @@ Client-side transitions between routes are enabled via a `<Link>` component
#### pages/index.js #### pages/index.js
```jsx ```jsx
import React from 'react'
import Link from 'next/link' import Link from 'next/link'
export default () => ( export default () => (
<div>Click <Link href="/about"><a>here</a></Link> to read more</div> <div>Click <Link href="/about"><a>here</a></Link> to read more</div>
@ -163,7 +159,6 @@ export default () => (
#### pages/about.js #### pages/about.js
```jsx ```jsx
import React from 'react'
export default () => ( export default () => (
<p>Welcome to About!</p> <p>Welcome to About!</p>
) )