Though React's most overt power lies in fully decoupled single-page applications, its component-based rendering system also opens the door for other approaches such as progressively decoupled Drupal, in which Drupal renders and serves pages before handing React control over CMS-rendered page components. Moreover, React’s surrounding ecosystem is increasingly extensive, particularly relevant as a GraphQL server for Drupal 8 begins to take shape.
What makes React so interesting for front-end developers as a solution for decoupled Drupal architectures? This session explores why React may be well-positioned for decoupled Drupal from a conceptual and architectural angle before examining integration techniques from a practical standpoint. Here are just a few of the concepts we’ll delve into:
- Origins, motivations, and comparisons
- React is a library, not an MVC framework
- React architecture and components
- State and the Virtual DOM
- Rendering and JSX
- Drawbacks of React
- Why React for decoupled Drupal?
- Fully decoupled Drupal with React
- React and REST in Drupal
- Working with Drupal data in React
- Progressively decoupled Drupal with React
- React and GraphQL in the Drupal ecosystem
- Epilogue: React within Drupal?