Home >Backend Development >PHP Tutorial >How to render React from PHP server side?

How to render React from PHP server side?

WBOY
WBOYOriginal
2016-07-06 13:52:021054browse

In our previous project, all Views were written on the front end. This also resulted in a large bundle.js after front-end packaging, which affected the loading speed. Now I am considering transplanting some of the initial state code to back-end rendering.

But our backend is written in PHP. Dear masters, is there any information you can provide me for reference? O(∩_∩)OThank you

Reply content:

In our previous project, all Views were written on the front end. This also resulted in a large bundle.js after front-end packaging, which affected the loading speed. Now I am considering transplanting some of the initial state code to back-end rendering.

But our backend is written in PHP. Dear masters, is there any information you can provide me for reference? O(∩_∩)OThank you

None, please use nodejs.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn