How ever dominant, even the world of Drupal cannot stay put to the technologies from it’s beginnings in 2001.
The Open Source community and Acquia did a significant investment in renewing the inner workings of the product in Drupal 8 — and continues to do so.
In reality introducing server side rendering with PHP environments like Drupal is not that difficult, initial server setup adds complexity, but once that is out of the way it’s pretty straightforward:
PHP could technically be used to render React components in native PHP. Since the community would need to maintain compatibility and feature parity with JSX and React itself, it is not feasible. This takes us into the ways that we can render React components in PHP:
- Use the V8Js extension to run an embedded V8 engine
- Execute node.js processes on demand
- Run a node.js rendering daemon for rendering
More relevant reading on the subject:
- Testing React.js isomorphic rendering with php-v8js and the Symfony Microkernel
- Rendering Riot.js tags in Twig using Node.js
Happy rendering! :)