Skip to content

Commit

Permalink
Fix minor typos in Interactivity API Reference (WordPress#62890)
Browse files Browse the repository at this point in the history
Co-authored-by: jffng <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
  • Loading branch information
3 people authored Jun 27, 2024
1 parent 12ee696 commit 7717c1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference-guides/interactivity-api/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ The `unique-id` doesn't need to be unique globally. It just needs to be differen
<summary><em>See store used with the directive above</em></summary>

```js
import { store, useState, useEffect } from '@wordpress/interactivity';
import { getElement, store, useState, useEffect } from '@wordpress/interactivity';

// Unlike `data-wp-init` and `data-wp-watch`, you can use any hooks inside
// `data-wp-run` callbacks.
Expand Down Expand Up @@ -1071,7 +1071,7 @@ Those attributes will contain the directives of that element. In the button exam

```js
// store
import { store, getContext } from '@wordpress/interactivity';
import { store, getElement } from '@wordpress/interactivity';

store( "myPlugin", {
actions: {
Expand Down

0 comments on commit 7717c1e

Please sign in to comment.