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 | { |
Install it:
1 | npm install --save next react react-dom |
and add a script to your package.json like this:
1 | { |
Next.js 是一个轻量级的 React 服务端渲染应用框架。
在项目文件夹中运行:
1 | npm install --save next react react-dom |
将下面脚本添加到 package.json 中:
1 | { |