re: 10 Tips & Tricks that will make you a better ReactJS Dev VIEW POST

FULL DISCUSSION
 

Note that hooks make a lot of higher-order components unnecessary. A lot of what was previously done using HOCs can now be done using hooks, as you can make your own custom hooks (they're just functions). Libraries like Relay are moving towards hooks, and the Redux use case you mentioned could also be done with hooks.

For testing, I'd personally recommend react-testing-library over Enzyme: testing-library.com/docs/react-tes...

 
code of conduct - report abuse