drupov / react-lazy-suspense-with-drupal

Demo React/Drupal app to showcase React.lazy() and Suspense API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo React/Drupal app to showcase React.lazy() and Suspense API

The repository includes a demo of React.lazy() and the Suspense API, included in React.js since the 16.6 release.

Data for the demo is coming from a Drupal 8 installation.

Installation instructions

Run in /backend:

composer install

Install your site. Generate some article content with Devel generate.

Run in /frontend:

npm install
npm start

About

Demo React/Drupal app to showcase React.lazy() and Suspense API


Languages

Language:PHP 84.5%Language:JavaScript 12.0%Language:HTML 2.8%Language:CSS 0.6%