~firefoxreact-appvite-appsrcredux
6 itemsDownload ./*

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


reduxhooks.ts
375 B• 28•  1 month ago•  DownloadRawClose
1 month ago•  28

{}
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 - 2025
twily at twily dot info



2 361 711 visits
... ^ v