问题描述:

I have an app based on the create-react-app starter kit and need to switch to universal/server rendering due to SEO issues.

Is there an easy way or example of taking the create-react-app teamplate and adding or modifying it to support universal rendering?

A lot of the examples I see for universal are overly complex for my needs and I prefer to keep it very clean and simple, if possible.

Thanks.


EDIT: FYI,

I found this medium post which points at this repository.

Seems simple enough, but since I'm a newbie on all webpack/react/node related stuff, if anyone thinks it's the wrong approach, would love to know...

网友答案:

There was a proof of concept of adding server rendering in this PR.
I cant speak to how good it is but its something you could start with.

You may also look at some of the alternatives.
A few of them provide server rendering out of the box.

相关阅读:
Top