RRU 088: Frustrations with React Hooks with Paul Cowan
React Round Up19 Nov 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.

Episoder(310)

Nx and Next.js Apps in 2022 with Jack Hsu - RRU 174

Nx and Next.js Apps in 2022 with Jack Hsu - RRU 174

Nx is here to make your life easier. In this episode, Paige and TJ talk with Jack Hsu, a developer whose Nrwl and Nx expertise is blowing us away with how streamlined things can be. “It’s nice for ev...

2 Mar 202250min

CSS Properties with Colby Fayock - RRU 173

CSS Properties with Colby Fayock - RRU 173

Let’s help you invest in your new CSS Property. (Get it?) In this episode, Jack and Paige sit down with CSS property extraordinaire, Colby Faycock, for React Roundup Round 2! They all discuss how to m...

23 Feb 202246min

From Court Rooms to WebGL with Mikael Petersen - RRU 172

From Court Rooms to WebGL with Mikael Petersen - RRU 172

Could a flight attendant or lawyer become a developer? You bet! In this episode, the React Roundup team talks with Mikael (Mickey) Petersen, a flight attendant turned lawyer turned developer who belie...

16 Feb 202241min

Fully Stacked with Mike Alche - RRU 171

Fully Stacked with Mike Alche - RRU 171

Wanna forget the back-end and only focus on the front? Too bad. In this episode, the React team sits down with Mike Alche, a developer whose full-stack approach reminds us why you need both ends to su...

2 Feb 202241min

Next Steps for Next JS with Tom Norton - RRU 170

Next Steps for Next JS with Tom Norton - RRU 170

Next JS is next in line, but are you ready for it? In this episode, the Roundup rascals team up with Tom Norton, a software developer who’s as excited about Next JS as they are. They discuss the pros ...

26 Jan 202244min

Libraries and State Machines in 2022 - RRU 169

Libraries and State Machines in 2022 - RRU 169

A new year brings new libraries and state machines, so if you’d rather not be confused, this episode’s for you. In this one, the team covers React’s most significant improvements, how to avoid losing ...

19 Jan 202250min

The Great Gatsby with Queen Raae - REACT 168

The Great Gatsby with Queen Raae - REACT 168

Interested to learn more about this “Great Gatsby”? How does it differ from others, and where is the industry headed? Time for a meeting with the Queen! In this episode, the React team sits down with ...

12 Jan 202245min

Nailing Your Interview with Paige Niedringhaus - REACT 167

Nailing Your Interview with Paige Niedringhaus - REACT 167

So, you’ve followed up with a recruiter and have an interview scheduled tomorrow. Not sure what to do next besides print your resume? Don’t fret! In this episode, the guys sit down with Paige Niedring...

5 Jan 202250min

Populært innen Business og økonomi

stopp-verden
lydartikler-fra-aftenposten
dine-penger-pengeradet
rss-penger-polser-og-politikk
e24-podden
rss-borsmorgen-okonominyhetene
livet-pa-veien-med-jan-erik-larssen
pengepodden-2
tid-er-penger-en-podcast-med-peter-warren
pengesnakk
utbytte
rss-sunn-okonomi
finansredaksjonen
morgenkaffen-med-finansavisen
lederpodden
rss-markedspuls-2
lederskap-nhhs-podkast-om-ledelse
stormkast-med-valebrokk-stordalen
liberal-halvtime
arcticpodden