Beyond the Block - Harnessing Gutenberg Packages and Components
summary
Shows how Gutenberg exposes reusable JS packages (element, i18n, api-fetch, lodash, wp-polyfill) that can be enqueued or installed from NPM and included via wp-scripts start/build for live rebuilds. Demo 1 uses wp.autoP plus the Knux tour and prints a word count: 215; Demo 3 fetches a post over REST with api-fetch and escapes HTML before insertion; Demo 4 wires a Redux-like wp-data store/selectors with dispatch/receive actions. Repo is a mono-repo built with lerna and sees ~226 PRs in a month.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker background
- 1:50Gutenberg beyond the editor
- 3:16What are Gutenberg packages
- 4:24WordPress packages in core
- 5:47NPM packages and WordPress integration
- 7:58Setting up local development
- 10:54Using WordPress scripts
- 11:58Demo 1: Using Gutenberg packages
- 22:02Demo 2: Building with WordPress scripts
- 24:27Demo 3: Fetching data with API
- 33:17Demo 4: Data flow with Redux
- 43:57How to contribute to Gutenberg
- 45:08Q&A and closing
