4 ms·
Note that they said "React + Redux". And that combo indeed takes a lot more time to get set up and understand the first time. I used this lib to get it to work
by resurge 7y ago
Note that they said "React + Redux". And that combo indeed takes a lot more time to get set up and understand the first time.
I used this lib to get it to work: https://www.npmjs.com/package/typesafe-actions https://www.npmjs.com/package/typesafe-actions
I wouldn't even know how to get it to work with just the regular react & redux types.
- onion2k 7y agotypesafe-actions looks useful but you don't strictly need it. You can use redux with TS just by adding @types/react-redux. https://redux.js.org/recipes/usage-with-typescript#usage-with-react-redux https://redux.js.org/recipes/usage-with-typescript#usage-wit...