~/talk

Developing WordPress blocks using plain JavaScript

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

Claims that you can build Gutenberg blocks without installing Node.js or npm and then proves it step‑by‑step: creates block.json, block.js, block.asset.php, registers with PHP using register_block_type, and wires dependencies from window.wp.blocks and window.wp.element (adding wp.blockEditor/useBlockProps and a polyfill). Builds a basic form block in plain createElement calls and then shows the cleaner JSX/npm workflow (create‑block, build step) for comparison. Demo loads in the editor; plain JS works but is verbose and requires manual dependency and cache management.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 6:16Why plain JavaScript blocks
  3. 8:21Creating the block files
  4. 21:05Understanding block registration
  5. 33:03Testing and troubleshooting
  6. 42:23Working with block props
  7. 51:03Adding rich text components
  8. 1:00:42Nested elements with createElement
  9. 1:12:56Vanilla vs JSX comparison
  10. 1:22:27Automating with build tools
  11. 1:30:01Cross-browser compatibility
  12. 1:32:07Q&A session
~/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.