Kishan Jasani

Code, Creativity & Everything I Learn

What are the useDispatch and useSelect?

The useDispatch and useSelect are Custom React Hooks that enable a more declarative interface to registered stores in the registery

These hooks are available in the @wordpress/data package.

useSelect and useDispatch are, custom hooks encapsulating logic for getting and setting data (or dispatching actions) to registered wp.data stores.

Leave a Reply

Your email address will not be published. Required fields are marked *