loading...

re: Difficulties Encountered with React Hooks VIEW POST

FULL DISCUSSION
 

We were lucky to start a green field project with React around the Hooks beta, going live as it went to production. For me it's the reason we are using React now, it's so much cleaner and less complexity with hooks. We have found some interesting issues with async (just wrote an article on that) which we've found very elegant ways around, thanks again to hooks.

The biggest complexities for us have been the reduction of renders and understanding why they are happening. Plus a few cases of our model breaking the rules and calling update functions after some async when the component has become unmounted in the interim.

We've cleaned a lot of this up by doing a few wrapped hooks of our own that ensure nothing accidentally goes astray - keeps the code neater too.

code of conduct - report abuse