Skip to content

Commit

Permalink
Add links to further TS resources
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Nov 23, 2019
1 parent f059ad0 commit b198f26
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -218,3 +218,12 @@ export default connector(MyComponent)
The hooks API is generally simpler to use with static types. **If you're looking for the easiest solution for using static types with React-Redux, use the hooks API.**

If you're using `connect`, **we recommend using the `ConnectedProps<T>` approach for inferring the props from Redux**, as that requires the fewest explicit type declarations.

## Resources

For additional information, see these additional resources:

- [Redux docs: Usage with TypeScript](https://redux.js.org/recipes/usage-with-typescript): Examples of how to declare types for actions, reducers, and the store
- [Redux Toolkit docs: Advanced Tutorial](https://redux-toolkit.js.org/tutorials/advanced-tutorial): shows how to use RTK and the React-Redux hooks API with TypeScript
- [React+TypeScript Cheatsheet](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet): a comprehensive guide to using React with TypeScript
- [React + Redux in TypeScript Guide](https://github.com/piotrwitek/react-redux-typescript-guide): extensive information on patterns for using React and Redux with TypeScript

0 comments on commit b198f26

Please sign in to comment.