~/talk

Building interactive blocks: a step-by-step workshop

Talkat WordCamp Europe 2023 · 2023-06-08..06-10· [wordpress, javascript]
links:none on file
slides:none on file

Demo shows a concrete Interactivity API workflow that turns server-rendered PHP blocks into reactive front-end pieces using Interactivity API, a Gutenberg branch and WP Now / WordPress Playground for zero‑setup testing. It builds quiz and search blocks with directives (data-wp-bind, data-wp-on, WP effect), serializes initial state from PHP, uses preact for diffing and preserves UI state across client navigation. Code and repo steps are available, the examples work live in the demo including instant navigation, preserved likes and client-side comment submission.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 6:10Interactivity API overview
  3. 16:18How the API works under the hood
  4. 34:36WordPress playground introduction
  5. 46:26Starting the workshop project
  6. 52:03Building the quiz block
  7. 1:02:05Making the block interactive
  8. 1:17:15Adding accessibility features
  9. 1:29:20Pre-populating state and translations
  10. 1:34:00Adding side effects and key handlers
  11. 1:38:41Scaling the interactive blocks
  12. 1:41:54Real-world examples and demos
  13. 1:48:42Future of the API and feedback
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.