React vs Next

Code-splitting

Next.js does code-splitting automatically. In react, we need to implement the lazy-load method ourselves.

Routing

No routing libraries are required. In react we need to install react-router-dom. In Next, we just need to create routes as files under pages folder.

const multiply = (a, b) => a * b;