It’s not a secret that creating client-side JavaScript is pretty difficult these days. Next.js is a minimalistic framework for server-rendered React applications with zero setup and simple deployment!
& lazy loading for faster page loads • Simple client-side routing (page based) • Webpack-based dev environment which supports Hot Module Replacement • Able to implement with Express or any other Node.js HTTP server • Customizable with your own Babel and Webpack configurations Next.js Features
and fast • Comes baked in with helpful development features ◦ Error handling ◦ Hot Module Replacement • Create a page by exporting a React component in pages/ ◦ Pages = Top-level components ◦ Use the filesystem as an API
history support!! • Code splitting, components are lazy loaded per page • Prefetching pages with Link prefetch! (not shown) ◦ Lazy Load components ahead of time ◦ Great initial load performance of a website ◦ Ahead-of-time download capabilities of an app Navigation: What We Learned
getInitialProps ◦ Isomorphic fetching (!) • When we render the page on the server, ◦ Fetch happens on the server • When we navigate via client-side ◦ Fetch happens on the client
get started with React. • Give it a try! Especially if: ◦ You’re new to the React ecosystem ◦ You need an SSR application ◦ You just want to get things done