React’s component-driven design simplifies reusing UI because chunks of markup can be encapsulated into custom components. Likewise, sharing traditional data utilities is straightforward because React is “Just JavaScript”™. But what about sharing non-visual component logic like state shape and lifecycle methods? React has had several approaches over its lifetime to solve this problem: mixins, higher-order components (HOCs), render props, and now hooks, each with its pros and cons.
In this session geared towards current React developers, let’s take a history lesson on sharing in React in order to better understand how modern-day custom hooks work and the problems they solve. By the end, not only will we know how hooks function, but we’ll also be equipped to pull out non-visual component logic into easily shareable custom hooks in our apps.
Presented by HackBuddy, a meetup group from Southern California that learns web programming together now ONLINE. Join us from around the world, simply get on the mailing list via: https://javascriptla.net.
Enjoy the video! Thumbs up if you liked, leave comments below and SUBSCRIBE if you're new! See you at the next meetup. Visit our website at: https://javascriptla.net for more meetup and event announcements!
Chat via:
Discord via invite link: / discord
You can also follow us on all relevant social media:
Instagram: / hackbuddyorg
Twitter: / hackbuddyorg
LinkedIn: / hackbuddyorg
Connect with Vijay, organizer directly via:
/ vijayxtreme
Thanks for watching! - Vijay, Organizer
https://javascriptla.net | HackBuddy