node.js - react做服务端渲染,SEO友好该怎么做?
大家讲道理
大家讲道理 2017-04-17 15:45:47
0
1
565

网站是由react+redux+express搭建的,前端路由用的react-router

这样就产生一个问题:对ESO很不友好

查了很多资料,看到很多都说用React Server Side Rendering解决服务器端渲染

我想问一下,具体的原理是怎样的,路由是由后端控制吗?

感谢各位朋友能给我一些建议。。。。

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
大家讲道理

Simply put, SSR has already rendered the content of the page when requesting it, so the SEO problem is naturally solved (crawlers can read the content directly when accessing).

Routing is actually isomorphic, that is, the same code can be understood and run by both the front and back ends, so there is no need to treat it differently.

I wrote a little bit last year, you can refer to it:

https://ruby-china.org/topics...
https://ruby-china.org/topics...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template