Building my first Gutenberg Block
summary
Builds two real blocks: a one-file hello block (PHP registers scripts with register_block_type and a tiny JS edit/save) and an editable block that stores text and an image as HTML attributes and publishes plain HTML that appears unchanged on the front end. Uses JS heavy logic, JSX compiled by Babel/Webpack (or create-guten-block scaffold), CSS split for editor/front end, and mentions ACF or server-side rendering as alternatives. Blocks work but validation updates can break without careful attribute handling.
AI-written summary · about
