Skip to content

Commit

Permalink
Update docs/using-react-redux/usage-with-typescript.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EskiMojo14 authored Jan 12, 2024
1 parent 04ca479 commit dcc2622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/using-react-redux/usage-with-typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ import type { RootState, AppDispatch } from './store'

// highlight-start
// Use throughout your app instead of plain `useDispatch` and `useSelector`
export const useAppDispatch = useDispatch.withTypes<RootState>()
export const useAppDispatch = useDispatch.withTypes<AppDispatch>()
export const useAppSelector = useSelector.withTypes<RootState>()
// highlight-end
```
Expand Down

0 comments on commit dcc2622

Please sign in to comment.