Next.js and UmiJS are both open source static site generators written in JavaScript, but that's where the similarities end. See the full comparison of Next.js and UmiJS.
| Property | Next.js | UmiJS |
|---|---|---|
| Language | JavaScript | JavaScript |
| Templates | React | React |
| License | MIT | MIT |
Next.js is a minimalistic framework for server-rendered React applications as well as statically exported React apps.
It's easy to install
npm install --save next react react-dom
Add a build script
{
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
}
}
After that, the file-system is the main API. Every .js file becomes a route that gets automatically processed and rendered.
Creating a website only takes a minute. Examples
umi testInstall tool
$ yarn global add umi # OR npm install -g umi
Create a page
$ mkdir myapp && cd myapp
$ umi generate page index
Start the development server
$ umi dev
Build and deploy
$ umi build