P E N C I L
Login
CheatSheet: Hooks+Redux

const dispatch = useDispatch();

const counter = useSelector((state: StoreStateX) => state.loanPage.test);

const onClick = useCallback(() => dispatch(refreshLoanPageAction()), []);

dispatch({type: ActionType.SET_LOAN, payload: {loan: loan}} as LoanPageStoreAction);