Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
cb90d055
Commit
cb90d055
authored
May 16, 2017
by
Arunoda Susiripala
Committed by
GitHub
May 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docs for next version 3 beta
parent
dff20eae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
readme.md
readme.md
+8
-3
No files found.
readme.md
View file @
cb90d055
...
@@ -10,6 +10,11 @@ Next.js is a minimalistic framework for server-rendered React applications.
...
@@ -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 -->
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
<!-- https://github.com/thlorenz/doctoc -->
<!-- https://github.com/thlorenz/doctoc -->
...
@@ -55,7 +60,7 @@ Next.js is a minimalistic framework for server-rendered React applications.
...
@@ -55,7 +60,7 @@ Next.js is a minimalistic framework for server-rendered React applications.
Install it:
Install it:
```
bash
```
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:
and add a script to your package.json like this:
...
@@ -687,9 +692,9 @@ import flush from 'styled-jsx/server'
...
@@ -687,9 +692,9 @@ import flush from 'styled-jsx/server'
export
default
class
MyDocument
extends
Document
{
export
default
class
MyDocument
extends
Document
{
static
getInitialProps
({
renderPage
})
{
static
getInitialProps
({
renderPage
})
{
const
{
html
,
head
}
=
renderPage
()
const
{
html
,
head
,
errorHtml
,
chunks
}
=
renderPage
()
const
styles
=
flush
()
const
styles
=
flush
()
return
{
html
,
head
,
styles
}
return
{
html
,
head
,
errorHtml
,
chunks
,
styles
}
}
}
render
()
{
render
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment