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.

Avsnitt(310)

Modernizing Enterprise React Apps with Paige Niedringhaus - RRU 160

Modernizing Enterprise React Apps with Paige Niedringhaus - RRU 160

This week, our very own host Paige Niedringhaus leads the discussion about modernizing enterprise React applications - inspired by a course she's just released on that very subject. Over the course of...

20 Okt 202158min

Maintaining Storybook ft. Yann Braga - RRU 159

Maintaining Storybook ft. Yann Braga - RRU 159

Yann Braga is the maintainer of Storybook. He talks about Storybook, how it's used, new features the team is working on, and what it's like to be part of the core team actively maintaining an open sou...

13 Okt 202150min

React Do's and Don't's - RRU 158

React Do's and Don't's - RRU 158

This week the panel discusses several Do's and Don't's for your React Apps that are lessons they've learned building React applications over the years. Panel Jack HerringtonPaige Niedringhau...

6 Okt 202149min

How to Stay Current and Learn New Things ft. Charles Max Wood - RRU 157

How to Stay Current and Learn New Things ft. Charles Max Wood - RRU 157

Charles Max Wood from Top End Devs joins the round up to discuss his strategies and tactics to get the career you want by keeping current on technologies and learning new things. He explains how ...

29 Sep 202154min

Composing Layouts for React ft. Travis Waith-Mair - RRU 156

Composing Layouts for React ft. Travis Waith-Mair - RRU 156

Travis Waith-Mair joins the round up to discuss how to compose layouts in React and the bedrock tools and principles that build up good layouts in React. Panel Jack HerringtonPaige Niedringh...

22 Sep 202147min

Run NextJS and Node in the Browser ft. Eric Simons - RRU 155

Run NextJS and Node in the Browser ft. Eric Simons - RRU 155

Eric Simons joins the round up to discuss the latest advancements made by StackBlitz that enables you to run NodeJS in the browser. Eric expands that to the work they've done with the NextJS team to r...

15 Sep 202150min

Building a Chatbot or Voicebot with Dialogflow in React ft. Victory Nwani - RRU 154

Building a Chatbot or Voicebot with Dialogflow in React ft. Victory Nwani - RRU 154

Victory Dumebi Nwani joins the round up to discuss integrating the Dialogflow from Google Cloud into your application to manage voice and chat capabilities for your application. Victory dives int...

1 Sep 202143min

Transitioning a React Codebase from JSX to TypeScript ft. Priscila Oliveira and Mark Story – RRU 153

Transitioning a React Codebase from JSX to TypeScript ft. Priscila Oliveira and Mark Story – RRU 153

Priscila Oliveira and Mark Story join the panel to discuss the recent transition at Sentry from vanilla JavaScript to React and TypeScript. The show starts out with the panelists nerding out over...

25 Aug 202142min

Populärt inom Business & ekonomi

framgangspodden
badfluence
varvet
rss-jossan-nina
rss-svart-marknad
rss-borsens-finest
uppgang-och-fall
rss-dagen-med-di
avanzapodden
lastbilspodden
rss-inga-dumma-fragor-om-pengar
rss-kort-lang-analyspodden-fran-di
fill-or-kill
bathina-en-podcast
bilar-med-sladd
borsmorgon
market-makers
24fragor
dynastin
svd-tech-brief