Skip to content

Commit

Permalink
Interactivity API: new store() API docs (#56764)
Browse files Browse the repository at this point in the history
* New store() API docs

* Update interactivity API diagram

* Small fixes to the docs

* Update interactivity docs assets

* Update `data-wp-interactive` in getting started

* Add docs for private stores

* Slightly improve `wp-class` example

* Clarify `store()` returns the same references

* Mention how to read props from other ns

---------

Co-authored-by: Mario Santos <[email protected]>
Co-authored-by: David Arenas <[email protected]>
  • Loading branch information
3 people authored and Vicente Canales committed Dec 5, 2023
1 parent 424a4d8 commit 9ed30ba
Show file tree
Hide file tree
Showing 4 changed files with 263 additions and 203 deletions.
2 changes: 1 addition & 1 deletion packages/interactivity/docs/1-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ To "activate" the Interactivity API in a DOM element (and its children) we add t


```html
<div data-wp-interactive>
<div data-wp-interactive='{ "namespace": "myPlugin" }'>
<!-- Interactivity API zone -->
</div>
```
Loading

0 comments on commit 9ed30ba

Please sign in to comment.