mrjmd / pdb

Decoupled Blocks is a Drupal 8 module to simplify integrating javascript frameworks into your site.
https://www.drupal.org/sandbox/mrjmd/2664138
57 stars 14 forks source link

What is involved to implement server-side Javascript rendering? #99

Open mccrodp opened 7 years ago

mccrodp commented 7 years ago

Thanks for this module, looks great. The React ToDo app works well.

Doing an evaluation for a client project where we would like to use some react components, but I have been advised from the React gurus in here that we need server side rendering for SEO purposes.

I saw the New Orleans talk on progressive decoupling and saw that the module doesn't support this yet. What if say we wanted to use some React component but also harness the SEO benefits of server side rendering.

The TODO list mentions that the React support is lacking. Can you tell me what specifically is lacking? The React ToDo app worked well, but am I limited in the other types of React components I can use?

Thanks again!

EDIT: There was some mention of some PHP VHS extension or a nodejs micro service. I'm unsure what the former is and Google didn't help so much and the latter I am not sure how we can connect the micro service to build the components using PDB or otherwise. Any light put on these or this issue in general is greatly appreciated.