in

Embedding a React App in a Drupal 8 Site

Lots of people in the Drupal community are eager to learn React these days, following Dries’s announcement that React is coming to Drupal.

At NEDCamp in 2018 I presented on how to dip your toe into embedding a react application into a Drupal framework (video on drupal.tv).

This is the long-delayed blog post to follow up to the presentation.

Our approach was fundamentally this:

  • we wanted to possibly embed multiple React apps on the site eventually, so we wanted to treat our base React libraries as common across the site.
  • we needed to marry React routing and Drupal routing so that we could occupy a whole “namespace” of the site
  • we wanted Drupal to store all the entities managed by the front-end, so we had to settle on storage and an API

This post was created with our nice and easy submission form. Create your post!

What do you think?

0 points
Upvote Downvote

Posted by PostNinja

Leave a Reply

Printing Regions in Views in Different Places Using the Same Template

Decoupled Drupal out-of-box with Contenta CMS distribution