Next.js 2.0 plays better with React and JavaScript

Next.js 2.0 plays better with #ReactJS and #JavaScript:

  • Next.js, a minimalist framework for server-rendered React applications, has moved to a 2.0 release focused on enabling smaller apps and making it easy to use React.
  • Developers can place React components in a directory and, by then run to get automatic code-splitting, routing, hot code reloading, and universal server- and client-side rendering.
  • Along with React, the Babel JavaScript compiler and Webpack module bundler have served as underpinnings of Next.js.
  • “We deployed a new lazy compilation mechanism that only subscribes to the pages that you’re actually working on — i.e.: all the component trees currently rendered,” developers said in a bulletin about the new version.
  • “This will potentially introduce new opportunities, like the ability to stream HTML from the server as it is generated,” Next.js developers said.

Version 2.0 of the minimalist JavaScript framework allows for smaller, more efficient apps
Continue reading “Next.js 2.0 plays better with React and JavaScript”

ZEIT – Next.js 2.0

Next.js 2.0

  • When we launched Next.js, there was no way to do dynamic routing or load your custom server code.
  • This has tremendous benefits, at the tiny cost of two extra parameters in the initial `install` to set up your project:

    Our mission is to make Next.js as familiar as possible to developers on the Web Platform.

  • Each top-level component (page) in Next.js defines the entirety of the document .
  • We’ve very thankful to our community for having submitted so many examples of backends (Express, HAPI, Koa…), styling systems (cxs, glamor, styled-components…), testing systems (jest), type systems (TypeScript and Flow), data fetching (Apollo) and many others.
  • This will allow for server-rendered pages that expose different JS components according to the data they used, for example.

Next.js 2.0 comes packed with performance improvements and extensibility features
Continue reading “ZEIT – Next.js 2.0”