Advanced Gutenberg Block Development
summary
Builds a tiny “heart” reaction block that stores a single integer in a post meta key and increments it via a custom REST endpoint; front end and editor share the same React/JSX components so markup isn’t duplicated. Uses WordPress’ wp.apiRequest for Ajax, registers a dynamic block with a PHP render_callback, and manages client state with Gutenberg’s WP Data (Redux-style) store. Demo shows instant UI updates and server-accurate counts; code and webpack build are on the linked repo.
AI-written summary · about
chapters (15)
- 0:00Start
- 1:10Introduction
- 5:14Guttenberg Blocks
- 7:25Static Block Types
- 10:05Using Gutenberg in Production
- 11:40Jsx Components
- 17:56Register a New Wp Data Store
- 19:22Live Code
- 19:46Visual Studio Code
- 22:43Registering a Block
- 24:16Registering a Block Type
- 28:00Edit Function
- 31:07Save Function
- 37:56Front-End Javascript
- 54:03Does Guttenberg Have any Built-In Way of Consuming External Api
