diff --git a/Readme.md b/Readme.md index d9dd3092e48a..4f3693671c90 100644 --- a/Readme.md +++ b/Readme.md @@ -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 () => ( -
{ cowsay('hi there!') }
+
{ cowsay({ text: 'hi there!' }) }
) ``` @@ -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 () => (
Hello world
-}) +) const styles = StyleSheet.create({ main: { @@ -70,11 +70,13 @@ We expose a built-in component for appending elements to the `` of the pag import React from 'react' import Head from 'next/head' export default () => ( - - My page title - - -

Hello world!

+
+ + My page title + + +

Hello world!

+
) ```