RRU 088: Frustrations with React Hooks with Paul Cowan
React Round Up19 Marras 2019

RRU 088: Frustrations with React Hooks with Paul Cowan

Paul Cowan was a painter and decorator for 30 years until he switched to front end development. He got into React because for him, much of programming didn’t make a whole lot of sense until he read about the flux model, and React Redux was one of the few frameworks that followed the flux model. Spending most of his life outside of the programming world has granted him a unique perspective frameworks like React. He talks about some of his frustrations with React hooks. Hooks can be frustrating because it’s a new paradigm to learn JS, the dependencies array can get bungled, React relies on the order in which hooks are called, and closures can be difficult. Overall, hooks come off at deceptively simple. Paul believes that we shouldn’t need external tooling to keep the dependency array on the right track. To avoid these frustrations, Paul reminds listeners that hooks have to be called in the same order each time at the beginning of your functional components. You also cannot have a hook in an if statement or event handler. It’s also important to remember the declarative nature of React. In production code, updating states is the best way to go. The panel agrees that it’s good that react has clarified their position on what hooks are supposed to be used for, and how we are beginning to see the limitations of React hooks. They discuss unit testing with hooks and how to determine when the React framework becomes too big. They talk about some of the new features that are coming out and how they benefit new developers. When mistakes do happen, Paul talks about how he determines what went wrong. If you want to get advice from other humans, they suggest consulting StackOverflow, ReactiveFlux, and IRC chat. When you do consult these sources, it’s important that your problem is reproducible so that it’s easier for people to help you out. It’s also important that you learn how to ask questions. The show finishes with them discussing how they handle changes in the industry. They have found that reusing components is difficult across Angular and React. They talk about the positive ways that React went version to version. They discuss complexity management in apps. The panel talks about some ways to do things in React without hooks, but also caution that avoiding the popular thing can also get you into trouble. Panelists
  • Thomas Aylott
  • Charles Max Wood
  • Chris Reyes
Guest
  • Paul Cowan
Sponsors _______________________________________________________ "The MaxCoders Guide to Finding Your Dream Developer Job" by Charles Max Wood will be out on November 20th on Amazon. Get your copy on that date only for $1. _______________________________________________________ Links Picks Thomas Aylott Charles Max Wood Chris Reyes Paul Cowan Special Guest: Paul Cowan.

Advertising Inquiries: https://redcircle.com/brands

Privacy & Opt-Out: https://redcircle.com/privacy

Become a supporter of this podcast: https://www.spreaker.com/podcast/react-round-up--6102072/support.

Jaksot(310)

RRU 108: Web Workers & Multi-threaded JavaScript with Majid Hajian

RRU 108: Web Workers & Multi-threaded JavaScript with Majid Hajian

JavaScript Remote Conf 2020May 13th to 15th - register now! Despite JavaScript being a single-threaded language, you can now leverage multi-threaded computing thanks to modern browser features such a...

12 Touko 20201h 3min

RRU 107: Remote Work with Vladimir Novick

RRU 107: Remote Work with Vladimir Novick

JavaScript Remote Conf 2020May 13th to 15th - register now! Vladimir Novick is a work from home veteran. He talks through the situation with COVID-19, having kids at home, and working from home. The ...

28 Huhti 202046min

RRU 106: React Socks for Easy Responsive Design with Paige Niedringhaus

RRU 106: React Socks for Easy Responsive Design with Paige Niedringhaus

JavaScript Remote Conf 2020May 13th to 15th - register now! Paige Niedringhaus talks about the ever increasing need for developers and designers to be thinking about responsive web design as they bui...

14 Huhti 202038min

RRU 105: ReasonML and the Reason Association with Patrick Stapfer

RRU 105: ReasonML and the Reason Association with Patrick Stapfer

JavaScript Remote Conf 2020May 14th to 15th - register now! Patrick Stapfer from the Reason Association joins Charles Max Wood to talk about ReasonML, functional programming, and how it fits into the ...

31 Maalis 202044min

RRU 104: How to Start a Side Hustle as a Programmer with Mani Vaya

RRU 104: How to Start a Side Hustle as a Programmer with Mani Vaya

Get Mani's 10x Entrepreneurship Bundle of Book Summaries! Use the coupon code HUSTLE. Mani Vaya joins Charles Max Wood to talk about how developers can add the entrepreneur hat to the others they we...

24 Maalis 202045min

RRU 103: Do the Work

RRU 103: Do the Work

Charles Max Wood monologues about how to get what you want and making a plan. The main focus of his discussion is about sticking it out through the boring or lonely parts and continuing to work for th...

10 Maalis 202032min

RRU 102: UI Components-Open Source vs. Paid with TJ VanToll

RRU 102: UI Components-Open Source vs. Paid with TJ VanToll

TJ VanToll hops on the Round Up to discuss when and where it makes sense to use open source UI components versus paying for them. The tradeoffs wind up being more subtle than you think. We dive into t...

3 Maalis 202052min

RRU 101: Military Veterans, How to Learn, and With You With Me with Travis Ralph

RRU 101: Military Veterans, How to Learn, and With You With Me with Travis Ralph

Travis Ralph works with With You With Me to help veterans transition from military service to IT jobs. He discusses the process of making the move from military service to software development, why th...

25 Helmi 202057min

Suosittua kategoriassa Liike-elämä ja talous

sijotuskasti
mimmit-sijoittaa
psykopodiaa-podcast
rss-rahapodi
rss-draivi
oppimisen-psykologia
rss-rahamania
rss-seuraava-potilas
taloudellinen-mielenrauha
rss-porssipuhetta
rss-lahtijat
rss-inderes
rss-sami-miettinen-neuvottelija
pomojen-suusta
rss-h-asselmoilanen
rss-bisnesta-bebeja
rss-viisas-raha-podi
asuntoasiaa-paivakirjat
rss-paatos-podcast-suomen-kovimmat-paatoksentekijat-2
rss-bisnespaiva