~firefoxreact-appvite-appsrcredux
6 itemsDownload ./*

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


reduxhooks.ts
375 B• 69•  5 months ago•  DownloadRawClose
5 months ago•  69

{}
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 469 005 visits
... ^ v