RRU 091: React Best Practices
React Round Up10 Joulu 2019

RRU 091: React Best Practices

In this week’s episode of React Round Up the panel works their way through a blog post outlining best practices for React. The first is “keeping components small and function-specific”. The panel discusses the pros of using this best practice and how it relates to the single responsibility principle. This best practice also helps with the next, “reusability is important”. The panel considers this second best practice and points out some of its flaws. It recommends avoiding the creation of new components. The panel explains that by avoiding creating new components it saves time but can also cause problems as you adapt components to fit more projects. The next best practice is “consolidate duplicate code”, the panel shares their philosophies on dry code and when to consolidate. The fourth best practice is comment only when necessary, Charles explains how he uses comments to help him keep track of things inside his code and the panel warns against using too many comments as it may clog up your code making it hard to read. The fifth best practice is, “name the component after the function”. The panel explains how it is an art finding a name that is not too generic but is not overly specific; mastering the art of naming is something that will benefit everyone. Naming relates to the sixth best practice as well. “Use capitals when naming components”. The panel explains the need for convention and advises developers not to go off-book as this will slow down others. The last six best practices are all self-explanatory says the panel. “Separate stateful aspects from rendering” is nothing new. “Code should execute as expected and be testable”, the panel explains how this allows for trust between developers. “All files relating to a single component should be in the same folder”, this makes everything easy to find when necessary. “Use tools like Bit”, while the panel doesn’t use Bit, they share tool recommendations. They also comment on the progress being made it tooling and the future of automated tools. “Use snippet libraries”, the panel discusses favorite libraries and building their own libraries. The final best practice is “Follow linting rules”. Panelists
  • Charles Wood
  • Christopher Reyes
  • Thomas Aylott
Sponsors Links Picks Charles Wood: Christopher Reyes: Thomas Aylott:

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 014: Razzle with Jared Palmer

RRU 014: Razzle with Jared Palmer

Panel: Nader Dabit Special Guests: Jared Palmer In this episode of React Round Up, the panel discusses Razzle and other projects with Jared Palmer. Jared is the lead engineer at The Palmer Group, ...

5 Kesä 201848min

RRU 013: Visual Studio Code and the VS Code Azure Extension with Matt Hernandez and Amanda Silver LIVE at Microsoft Build

RRU 013: Visual Studio Code and the VS Code Azure Extension with Matt Hernandez and Amanda Silver LIVE at Microsoft Build

Panel: Charles Max Wood Special Guests: Matt Hernandez and Amanda Silver In this episode, the JavaScript Jabber panelists discuss Visual Studio Code and the VS Code Azure Extension with Matt Herna...

29 Touko 201850min

RRU 012: The Future of Higher Order Components and Render Props with Paul Gray

RRU 012: The Future of Higher Order Components and Render Props with Paul Gray

Panel: Nader Dabit Special Guests: Paul Gray In this episode of React Round Up, the panel discusses the future of higher order components and render props with Paul Gray. Paul is a software develo...

22 Touko 201836min

RRU 011: Simple React Patterns with Lucas Reis

RRU 011: Simple React Patterns with Lucas Reis

Panel: Charles Max WoodCory House Special Guests: Lucas Reis In this episode of React Round Up, the panel discusses simple React patterns with Lucas Reis. Lucas works as a senior front-end develop...

16 Touko 20181h 1min

RRU 010: Best Practices with React and Redux with Samuel Mendenhall

RRU 010: Best Practices with React and Redux with Samuel Mendenhall

Panel: Cory HouseNader Dabit Special Guests: Samuel Mendenhall In this episode of React Round Up, the panel discusses best practices with React and Redux with Samuel Mendenhall. Samuel has been wo...

8 Touko 201851min

RRU 009: Hot Reloading in Create React App with Dave Ceddia

RRU 009: Hot Reloading in Create React App with Dave Ceddia

Panel: Charles Max WoodTara Manicsic Special Guests: Dave Ceddia In this episode of React Round Up, the panel discusses hot reloading with Create React App with Dave Ceddia. Dave is a React develo...

1 Touko 20187min

RRU 008: The Framework Summit with Joe Eames

RRU 008: The Framework Summit with Joe Eames

Panel: Tara ManicsicNader Dabit Special Guests: Joe Eames In this episode of React Round Up, the panel discusses The Framework Summit with Joe Eames. Joe discusses the history behind the conferenc...

24 Huhti 20181h 1min

RRU 007: Breaking up with Higher Order Components with David Atchley

RRU 007: Breaking up with Higher Order Components with David Atchley

Panel: Charles Max WoodNader DabitCory HouseKent C Dodds Special Guests: David Atchley In this episode of React Round Up, the panel discuss breaking up with higher-order components with David Atch...

17 Huhti 201812min

Suosittua kategoriassa Liike-elämä ja talous

sijotuskasti
mimmit-sijoittaa
rss-rahapodi
psykopodiaa-podcast
herrasmieshakkerit
rss-rahamania
ostan-asuntoja-podcast
leadcast
rss-lahtijat
rss-seuraava-potilas
rss-merja-mahkan-rahat
rss-40-ajatusta-aanesta
rahapuhetta
rss-porssipuhetta
rss-vaikuttavan-opettajan-vierella
rss-bisnesta-bebeja
rss-paatos-podcast-suomen-kovimmat-paatoksentekijat-2
rss-bisneksen-pehmea-puoli
rss-levosta-kasin-yrittajyys
rss-ma