Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/kienstra/headless-blocks/archive/refs/heads/develop.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Use interactive React components on the front-end.
Contributors: ryankienstra, johnstonphilip Tags: blocks, headless Requires at least: 5.5 Tested up to: 5.5 Stable tag: 0.1.0 License: GPLv2 or later Donate link: http://jdrf.org/get-involved/ways-to-donate/ Requires PHP: 7.3
Description
Your custom blocks, optimized for headless.
- Write the front-end of your blocks as React components in your Next.js repo's
blocks/directory. - Give this plugin the URL of your Next.js repo with
./bin/setup.sh - This plugin will import those blocks and display them in Gutenberg.

Setup
- Install this .zip of Genesis Custom Blocks, a dependency of this plugin
- Clone this repo into
wp-content/plugins/ cd headless-blocksnvm use./bin/setup.sh- Follow the prompt to enter the name and URL of your headless front-end repo. That will make this plugin import the blocks from that repo.
npm run build- Or to watch for changes:
npm run dev