How can a react single-page application project be quickly converted to a server-side rendering project?

the react development used for the company"s news and information projects did not take into account the seo problem at that time, but now the company needs to consider seo. It is generally said to use server rendering on the Internet. I would like to ask how you can quickly turn the current project into server rendering? Is it better to use egg or koa2 on the server? Can the data of the backend interface be used normally after using the server rendering request? Ask for the advice of the great gods who have done it! Hurry!


I think it doesn't matter, what you want to achieve is seo.

there is no need to complicate the problem, just render the home page with react's ReactDOMServer , and then send the status Synchronize to (such as window.__react_state__) client

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e94a28-472c9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e94a28-472c9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?