ReactJS-Drupal is a simple application which attempts to demonstrate headless drupal feature in Drupal 9.
git clone reactjs_drupal
cd reactjs_drupal
npm i --leagacy-peer-deps
npm start
- Make sure you have Drupal 9 running as backend
- Make sure you copy URL in config.js
- Add token inside token file by visiting your site
- /YOUR_LOCAL_DRUPAL_URL/session/token
- You must enable CORS
- And you may have to allow permission for Drupal article contents-type
Use solely for reference material only