React Template project with reactjs,antd and next.js
基于react项目开发复杂?想服务端渲染,配置路由麻烦?等等,不要焦虑,这里有一个方案,一个可以快速开发出中后台产品方案,截图如下:
npm init
npm install next antd --save
mkdir pages
touch index.js:
import React from 'react'
export default () => (
<div>Welcome to next.js!</div>
)
vi package.json
add:
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
}
npm run dev
npm run build
npm run start