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