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
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.
- Install this .zip of Genesis Custom Blocks, a dependency of this plugin
- Clone this repo into
wp-content/plugins/
cd headless-blocks
nvm 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