Skip to content

Commit

Permalink
Better rephrasing
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravobernal committed Feb 14, 2024
1 parent e057e6b commit b7f6519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/interactivity/docs/2-api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ With directives, we can directly manage interactions related to things such as s

#### `wp-interactive`

The `wp-interactive` directive "activates" the interactivity for the DOM element and its children through the Interactivity API (directives and store). For the first version of the API it only includes a namespace to reference a specific store, so can be set as a `string` or an `object`.
The `wp-interactive` directive "activates" the interactivity for the DOM element and its children through the Interactivity API (directives and store). The directive includes a namespace to reference a specific store, that can be set as a `string` or an `object`.

```html
<!-- Let's make this element and its children interactive and set the namespace -->
Expand All @@ -87,7 +87,7 @@ The `wp-interactive` directive "activates" the interactivity for the DOM element
</div>
</div>
```html
<!-- This will also work, but using just the string is recommended. -->
<!-- This is also valid -->
<div
data-wp-interactive='{ "namespace": "myPlugin" }'
data-wp-context='{ "myColor" : "red", "myBgColor": "yellow" }'
Expand Down

0 comments on commit b7f6519

Please sign in to comment.