@keybittech/awayto
Version:
Deploy a fully-featured application in about 10 minutes that is primed for quick development. Do business, impress a client with a quick demo, finish your poc with time to spare; all easily achievable with Awayto.
16 lines (15 loc) • 454 B
text/typescript
import { TypedUseSelectorHook, useSelector } from 'react-redux';
/**
*
* Typical typed redux store hook. Awayto exports `useState` for convenience.
*
* ```
* import { useRedux, useState } from 'awayto';
*
* const profile = useRedux(state => state.profile);
* const modifications = useState<IUserProfile>({ ...profile });
* ```
*
* @category Hooks
*/
export const useRedux: TypedUseSelectorHook<ISharedState> = useSelector;