DEV Community

Discussion on: Redux Hooks!

 
jimmymcbride profile image
Jimmy McBride

You can do it all on your own, which does defeat the purpose of connect doing it for you. Although, the fixes to get same preformances aren't difficult, and those fixes would make other things in your app more preformant. So there's that.

Unless you're REALLY into getting optimal preformance, I don't think the rerenders you loose out on are going to really slow your app down.

I think if it comes down to improving your rerenders your going to use useMemo anyways.

Thread Thread
 
leob profile image
leob

Right, so if you grasp how it works then without too much difficulty you can obtain virtually the same performance, and you're learning something useful in the process (you'd gain a deeper understanding) ... if I'd ever attempt this stuff then I'd re-read that article first!

Thread Thread
 
jimmymcbride profile image
Jimmy McBride

Definitely. useMemo is a great hook to learn too. If your into rerender optimization, check out React hook from. It does some pretty cool stuff!

Thread Thread
 
leob profile image
leob

Ah you mean React Hook Form? react-hook-form.com/

Thread Thread
 
jimmymcbride profile image
Jimmy McBride

Oh, yeah!