网站是由react+redux+express搭建的,前端路由用的react-router
这样就产生一个问题:对ESO很不友好
查了很多资料,看到很多都说用React Server Side Rendering解决服务器端渲染
我想问一下,具体的原理是怎样的,路由是由后端控制吗?
感谢各位朋友能给我一些建议。。。。
大家讲道理2017-04-17 15:47:47
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...