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

Update docs for next version 3 beta

This commit is contained in:
Arunoda Susiripala 2017-05-16 07:08:37 -07:00 committed by GitHub
parent dff20eae01
commit cb90d05544

View file

@ -10,6 +10,11 @@ Next.js is a minimalistic framework for server-rendered React applications.
---
This is the documentation for our latest **beta** of version 3.0 which comes with **static export** and **dynamic imports**.
For the documentation of the latest **stable** release, [visit here](https://github.com/zeit/next.js/blob/master/readme.md).
---
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
<!-- https://github.com/thlorenz/doctoc -->
@ -55,7 +60,7 @@ Next.js is a minimalistic framework for server-rendered React applications.
Install it:
```bash
npm install next react react-dom --save
npm install next@beta react react-dom --save
```
and add a script to your package.json like this:
@ -687,9 +692,9 @@ import flush from 'styled-jsx/server'
export default class MyDocument extends Document {
static getInitialProps ({ renderPage }) {
const {html, head} = renderPage()
const {html, head, errorHtml, chunks} = renderPage()
const styles = flush()
return { html, head, styles }
return { html, head, errorHtml, chunks, styles }
}
render () {