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)

Finding Hidden Gems in Your React Upgrades - RRU 205

Finding Hidden Gems in Your React Upgrades - RRU 205

The React Round Up panel joins the show as Jack takes the lead to talk about the various improvements made in the React Ecosystem. Additionally, they offer their thoughts and insights on these updates...

7 Joulu 202251min

How To Recession Proof Your Job - BONUS

How To Recession Proof Your Job - BONUS

Get the Black Friday/Cyber Monday "Focus Blocks Bundle" Deal Coupon Code: "THRIVE" for a GIANT discount   Are you looking at all the layoffs and uncertainty going on and wondering if your company is t...

24 Marras 20221h 12min

All Things Voice Recognition and JavaScript with Ian Lavery - RRU 204

All Things Voice Recognition and JavaScript with Ian Lavery - RRU 204

Returning guest, Ian Lavery from Picovice.ai, joins the hosts to talk all things voice recognition. He dives into new languages the company has tackled over the last year (and what languages it plans ...

16 Marras 202249min

Migrating From A Monolithic Ruby App To React With Nirmalya Ghosh - RRU 203

Migrating From A Monolithic Ruby App To React With Nirmalya Ghosh - RRU 203

Nirmalya Ghosh joins the React Round Up panelists in this episode to talk about how he migrated a monolithic Ruby on Rails application to React. What was estimated to take 3 -6 months ended up taking ...

9 Marras 202251min

Migrating to React Query from Redux with Pierre Hedkvist - 202

Migrating to React Query from Redux with Pierre Hedkvist - 202

Software engineer Pierre Hedkvist joins the React Round Up panelists to share some spicy (controversial) coding decisions he's made and then written about. The first hot topic is using React state to ...

2 Marras 202241min

Supabase and Supabase Studio with Vijit Ail - RRU 201

Supabase and Supabase Studio with Vijit Ail - RRU 201

Return guest Vijit Ail joins the cast of React Round Up to talk all things Supabase. If you've ever used Firebase and wished it was open source, this is the episode for you. Vijit espouses all the coo...

26 Loka 202232min

Our 200th Episode Look Back - RRU 200

Our 200th Episode Look Back - RRU 200

In our 200th episode of React Round Up, the panelists take a look back at how their first appearances on RRU and how they came to be on the show. In addition to advice on how they got to where they ar...

19 Loka 202250min

Cypress.io: One Testing Framework to Rule Them All with Gleb Bahmutov - RRU 199

Cypress.io: One Testing Framework to Rule Them All with Gleb Bahmutov - RRU 199

Gleb Bahmutov, who worked with the Cypress.io team for 4 years, joins the panelists to talk all things testing. You may be familiar with Cypress as a popular JavaScript end-to-end testing framework, b...

28 Syys 202248min

Suosittua kategoriassa Liike-elämä ja talous

sijotuskasti
psykopodiaa-podcast
mimmit-sijoittaa
rss-rahapodi
rss-draivi
rss-lahtijat
oppimisen-psykologia
rss-rahamania
rss-porssipuhetta
taloudellinen-mielenrauha
rss-seuraava-potilas
rahapuhetta
rss-h-asselmoilanen
rss-paatos-podcast-suomen-kovimmat-paatoksentekijat-2
rss-paasipodi
rss-inderes
io-techin-tekniikkapodcast
pomojen-suusta
rss-viisas-raha-podi
rss-40-ajatusta-aanesta