Hacker News new | ask | show | jobs
by acemarke 1637 days ago
Heh, you're welcome!

Out of curiosity, what do you mean by "converting completely to hooks" and "not being the right move"?

If you mean "sticking with `connect` for Redux usage in components", we _do_ recommend the hooks API as the default - it's a lot easier to learn and use, especially with TypeScript. Yes, that does mean you don't get the "auto-optimization of re-rendering when parents re-render" that `connect` gives you, but you can get the same result by wrapping your own components in `React.memo()` as needed (which is actually what `connect` uses internally.)