Discussion on: 10 Tips & Tricks that will make you a better ReactJS Dev

daniel15 profile image
Daniel Lo Nigro

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...

simonholdorf profile image
Simon Holdorf Author

Valid points - thanks for sharing !