2 ms·
FWIW I think hooks have made types a lot easier to deal with in Redux.
by yawnr 4y ago
FWIW I think hooks have made types a lot easier to deal with in Redux.
- acemarke 4y agoAbsolutely, and that's a major reason why we specifically teach the React-Redux hooks API as default today, and have guidance on setting up "pre-typed" hooks with the store types baked in: - https://redux.js.org/tutorials/essentials/part-2-app-structure#the-react-counter-component https://redux.js.org/tutorials/essentials/part-2-app-structu... - https://redux.js.org/tutorials/typescript-quick-start#define-typed-hooks https://redux.js.org/tutorials/typescript-quick-start#define...