I set up a ReactJS front-end with a Drupal 8 API (“Headless” Drupal, or decoupled Drupal as some call it).
- Create a Drupal 8 installation on your local or remote machine
- Install Devel module and Devel generate and generate some nodes.
- Create a View with the nodes and click on Provide a REST export and give it a link (e.g. /api/articles)
- Test your link (e.g. http://localhost/drupal8/api/articles)
- Edit js/app.js on line 20 and put the link you create.
- Just run your app on your local/remote server. It should list your content and provide you with a search form.