Agenda
- Co to je, k čemu to je a případně jak se to liší od ostatních
- Proč si vybrat next
- Zajímavé examply
- Příklad/Live Coding?
- Discussion
Reasons to choose next.js
Great company “zeit" behind it
- founder “Guillermo Rauch” (socket.io)
- They have business model around it - now…
- https://zeit.co/about
Great project
- 6 versions so far, minimal api changes
- 25 164 🌟stars - GitHub
- Continuous development
- Lot of examples
- LearnNextJs.com for beginners
- Active github/community (spectrum.chat)
Can be used with different servers or static export
- Koa, hapi, Fastify, express…
- As start you can export to static file and host anywhere
- for example on Github pages
Include nice “tricks”
- SSR out of the box with
getInitialProps
- _document, _app (_app introduced in v6)
- Every page is “Webpack endpoint”
- Link prefetching
- Dynamic import
- stars
- custom server
- static export
- gh pages
- with inferno (preact) instead of react
- and design, aphrodite, fela, glamorous
material-ui, styled-components, style-jsx
- redux, mobx, mobx-state-tree
- apollo, firebase
- electron, pkg
- flow, typescript
- jest (storybook)
- ReasonML
Questions
Petr Šnobelt
petr.snobelt@gmail.com
@petrsnobelt