useBannerActions
The purpose of useBannerActions
hook is to abstract out our store actions and exposes actions handlers responsible for updating store value.
Example usage
const { addBannerItem } = useBannerActions();
Hook Return Value
addBannerItem
addBannerItem
Type |
---|
Function of type: ({ bannerType, bannerMessage }: {bannerType: BannerType; bannerMessage: string;}) => void |
Updated 9 months ago
What’s Next