UNPKG

piral-core

Version:

The core library for creating a Piral instance.

10 lines 311 B
import { useContext } from 'react'; import { StateContext } from '../state/stateContext'; /** * Hook that gets the actions for manipulating the global state. */ export function useActions() { const { state, ...actions } = useContext(StateContext); return actions; } //# sourceMappingURL=actions.js.map