Just converted a React component to use Hooks
Just converted a React component to use Hooks. Here's the diff: https://github.com/coryhouse/pluralsight-redux-app-used-to-build-script/pull/18/files
Wins:
✅ No class = no `this` keyword = shorter calls, no binding confusion
✅ Replaced 2 lifecycle methods with 1 useEffect Hook
✅ Can extract any reusable logic to a custom Hook