~firefoxreact-appvite-appsrcredux
6 itemsDownload ./*

..
counter
hooks
mousePosition
windowSize
hooks.ts
store.ts


reduxhooks.ts
375 B• 180•  1 year ago•  DownloadRawClose
1 year ago•  180

{}
import { useDispatch, useSelector } from 'react-redux';
import type { TypedUseSelectorHook } from 'react-redux';
import type { RootState, AppDispatch } from './store';

// Use these hooks instead of plain `useDispatch` and `useSelector`
export const useAppDispatch: () => AppDispatch = useDispatch;
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;

Top
©twily.info 2013 - 2026
twily at twily dot info



3 399 210 visits
... ^ v