Next.js英文说明

Visit nextjs.org/learn to get started with Next.js.

How to use

Setup

Install it:

1
npm install --save next react react-dom

and add a script to your package.json like this:

1
2
3
4
5
6
7
{
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
}
}
阅读更多

Next.js中文说明

Next.js 是一个轻量级的 React 服务端渲染应用框架。

可访问 nextjs.org/learn 开始学习 Next.js.

怎么使用

安装

在项目文件夹中运行:

1
npm install --save next react react-dom

将下面脚本添加到 package.json 中:

1
2
3
4
5
6
7
{
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
}
}
阅读更多