Exploring the Interactivity API in WordPress Part 2
ฝัง
- เผยแพร่เมื่อ 19 มิ.ย. 2024
- Aurooba and Brian dig deeper into the WordPress Interactivity API. This episode mostly focuses on the HTML directives they used in their custom blocks, how they work with block markup, and how the Interactivity API uses them to hydrate data. Along the way they also compare it to other templating and logic tools like the ones in Laravel and Next.js from previous episodes.
A full transcript of the episode is available on the website. Watch the video podcast on TH-cam and subscribe to our channel and newsletter to hear about episodes (and more) first!
github.com/WordPress/gutenber...
/ sethrubenstein
/ developwoo
developer.wordpress.org/block...
Brian's website - www.briancoords.com
Aurooba's website - aurooba.com
00:00:00 Introduction
00:01:21 Packages vs Feature Plugins
00:04:24 Browsing the Documentation
00:08:24 Preview of our frontend block
00:09:53 HTML Directives
00:13:12 Conventions for binding and events handlers
00:16:31 Callbacks and Actions
00:18:37 State, Context and Loops
00:20:04 Using Attributes and Hydration
00:24:01 Wrapping up and Next Steps
Great video, and I found the most impactful insight within the first four minutes. The notion of being more extensible and thoughtful, of embracing a slower pace where "slow is smooth, slow is fast," resonated deeply with me. It harks back to the foundational principles of WordPress, which I believe are essential to revisit. In my humble opinion, returning to this approach is crucial for future growth 👏👏
Great episode. I would love to see server side stuff with Interactivity API. For example load more button (for posts), infinite scroll or active search.