React, Flux, GraphQL, Hack, HHVM...? All of this and more!
PHP remains a popular language on the web and these two technologies (React and PHP) need to play nice together. React rendering using Node.js on the server side in PHP is completely feasible. Twig is a templating language for PHP that is widespread in Content Management Systems using Symfony and other tools.
If you want to render tags in Twig it's best to do this with a filter. Instead of creating Drupal 8 specific extensions, you can easily start with a base that can be shared across different tools using PHP. Rendering React components with Twig in Drupal 8 can be done by spawning a node process on the first uncached Twig call.
This is the easy way of going forward with Drupal 8 and React Component Rendering.Tweet