meteor / react-tutorial

React Tutorial is the best place to learn how to use React and Meteor together
https://react-tutorial.meteor.com/
39 stars 87 forks source link

Add SSR tutorial #24

Closed eugle closed 3 years ago

eugle commented 3 years ago

The most important issue in React is SSR. And if one does not learn the SSR in the React , there is no reason to use React. Especially with Next vs. React. So practically if we do not learn SSR well in Meteor-React we have no reason to use Meteor-React

That's an important question. Why close it

Because of the SSR problem, a lot of people will switch to NextJS. Although I have now implemented the SSR with the help of the community, there is still the next problem, which is the SSR problem of code splitting. Also using the community package, I feel that Meteor is too small in this area, is Meteor just used for mobile apps, not SEO?

There was also no official solution for splitting the code, the app would be slow and the first screen would be sluggish, which severely affected the use of Meteor and caused more people to switch to NextJS

filipenevola commented 3 years ago

Hi, many people use React without SSR.

There are many ways to use any library.

We are discussing about SSR documentation and examples here https://github.com/meteor/meteor-feature-requests/issues/420

SSR is definitely possible with Meteor, we have a core package dedicated only for server-render features.

We are going to discuss details and next steps in the issue linked above.

Here the focus should be the tutorials, we could add a new tutorial covering SSR with Meteor and React. That would be nice.

eugle commented 3 years ago

Great, I hope that the tutorial can detail how to use ssr. I saw that the meteor react 2.0 tutorial has been released, but there is no ssr content. I hope that good people can add it. I look forward to it :)