Hacker News new | past | comments | ask | show | jobs | submit login

can anyone compare with meteor please?



1. Embraces React exclusively[1]. We at ZEIT think the React Component model is the de-facto component model of the web and mobile.

In practical terms, this means that every "page" or "entry point" to your app is just an exported component `function` or `class`. `export default () => <p>My component!</p>`.

At the expense of a storm of HN downvotes, it's "more PHP than Meteor" :)

2. No data layer built in, syncing, Models, etc. We added an extra lifecycle hook called `getInitialProps` (think of it as the counterpart to `getInitialState`) whose contract is returning data as a `Promise`.

This allows you to combine and compose different approaches to data retrieval. It works just as well with REST as it does with GraphQL or Socket.IO or server-sent-events or offline-only or…

3. It hides configuration details but allows you to tap into them.

It's powered by `Babel` and `webpack`, which are exposed as a single command (`next` and `next build`), but you can completely override and customize them.

These are just some ideas. We created it to power the team collaboration aspects of our Web UI (https://zeit.co). We are committed to supporting it because we use it and we love it.

[1] Also React alternatives like Inferno and Preact (https://github.com/zeit/next.js/tree/master/examples/using-p...)


> more PHP than Meteor

That made me laugh. But, really, it's true. Adding a new page is as simple as adding a new file. No importing, routing, etc. required. That's one thing that I think PHP got right.


Just curious: is Typescript supported out of the box?


To answer my own question to those that stumble upon this via google or whatever. It doesn't appear to be. However this example was pretty helpful (as of 20170518):

https://github.com/zeit/next.js/tree/d08e027a8c1d9bfe773a8b3...


As it previously said it's two different projects. Meteor is a full stack framework where it does everything from data to rendering.

But Next.js is not like this. It's only for the UI (rendering) You can build server rendered React apps pretty easily. It supports dynamic imports, prefetching, preloading and you name it.

Now you can export any Next.js app into a static app too.

Recently, Meteor adds some new JS features into it's build setup too.


Meteor is (to my understanding) an all-in-one framework with database access and realtime stuff built in.

Next.js is sort of a React project bootstrap/boilerplate that has some pre-selected configuration for things like styling components and server side rendering.


Next.js is not a boilerplate. It's kind a mini framework comes with it's own simple Router.

Basically it makes building client side apps faster and fun. Check this for more info: https://learnnextjs.com/


Next and Meteor are two separate types of projects.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: