Slide 13
Slide 13 text
Summary
u Server- and client-side rendering each come with pros and cons
u With Universal JavaScript, we can run the same code on both client
and server, but truly taking the best of both worlds can be complex
u Next.js for React is a great solution that overcomes the complexity
u Rapid set-up – preconfigured Webpack + Babel that is still customizable
u Minimal convention framework where routes are defined by files in a
/pages/ folder
u Automatic code-splitting for each page in /pages/
u Can asynchronously load anticipated pages after the current page has
rendered
u Developer writes one set of (universal) code that the app runs on server
or client, whichever is best for the current situation