RUVIDEO
Поделитесь видео 🙏

WordPress Developer Hours: Interactivity API (Americas)

What if effortlessly creating performant, fluid, and idiomatic frontend interactivity on block-based WordPress sites was possible? Imagine plugins providing interactions like "heart this post" or "add to cart" without page reloads. Picture instant search, commenting, and native full-page transitions as best-in-class built-ins without complex scaffolding or external tools. Envision achieving this in any block theme by default, without sacrificing PHP server rendering and the plugin ecosystem for a JS runtime. Visualize block developers easily declaring and extending such behaviors in a way that is immediately familiar and compatible with the block ecosystem.

That’s what we aim to explore and unlock with the Interactivity API.

This session features a live product demo presented by Michal Czaplinski, one of the developers who has brought the Interactivity API to fruition. Following the demo Michal answers questions posed by the audience.

Also check the WordPress Developer Hours: Interactivity API (APAC/EMEA) session with Mario Santos and Luis Herranz: https://www.youtube.com/watch?v=6ghbrhyAcvA&list=PL1pJFUVKQ7ETApyQQlt3pLNjPx2HrQwl5&index=4

___________________________________________

View this video and others on WordPress.TV: https://wordpress.tv/2023/04/18/developer-hours-introduction-to-the-interactivity-api/
___________________________________________

Links from the talk:
- Project repo: https://github.com/WordPress/block-interactivity-experiments
- Movies demo: https://wpmovies.dev/
- Movies demo repo: https://github.com/WordPress/wp-movies-demo
- Proposal: https://make.wordpress.org/core/2023/03/30/proposal-the-interactivity-api-a-better-developer-experience-in-building-interactive-blocks/
___________________________________________

0:00:00 - Introduction
0:02:40 - Showing the Interactivity API in action with the Movies demo
0:07:16 - The code behind the Movies demo
0:09:45 - Initialising state on the server in PHP
0:11:50 - Directives
0:13:48 - Persisting state
0:19:45 - Cache logic
0:24:30 - Client-side navigation
0:28:04 - Learning more about the Interactivity API
0:29:25 - Preact vs React
0:33:40 - Blocks and the Interactivity API
0:35:24 - Directives re-visited
0:36:36 - Actions and filters
0:38:56 - Previewing interactivity in the editor
0:41:24 - React, PHP, and the Interactivity API
0:43:20 - Built-in directives and custom directives
0:48:04 - Benefits of the Interactivity API
0:52:08 - Common or multiple stores
0:53:35 - Getting started and tooling
0:55:25 - Interactivity API vs Alpine.js
0:58:20 - Plugin or core
0:58:45 - Naming conflicts
1:01:36 - Wrap-up

#webdevelopment #frontend #javascript #wordpress #gutenberg #developer #blockdevelopment

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «WordPress Developer Hours: Interactivity API (Americas)», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.