We are starting off the year right with a PentaBAR designed for the FrontEnd community.
💻 The agenda:
- React Hooks introduction
- Class Components vs. Hooks
- Study case: migration from Class Component to Hooks
👨💻 About the speaker:
This is how he describes his PentaBAR:
After the release of React Hooks API, Redux also released its own version of Hooks (7.1.0), adding support for existing React-Redux API. The addition of hooks for React-Redux was much needed and it’s not the only one, other libraries have implemented and now support hooks.
In the React-Redux ecosystem, HOC components are usually used to inject the additional data, functions, props or state. These components act as a wrapper. When HOC renders a single component, Hook API can be an alternative, eliminating the wrapper. Using HOC’s with multi-layer wrappers, sometimes can be hard to maintain.
In my opinion, using Hooks instead of Redux for state management is by no means easier and not always necessary.
You have to be already familiar with the underlying concepts. Without relying on Redux, you will lose out-of-the-box performance optimizations, middleware support, devtools extension, time travel debugging and other things.”
🍻 Cheers! 🍻