RRU 091: React Best Practices
React Round Up10 Dec 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.

Avsnitt(310)

The Evolution of Prime React with Cagatay Civici - RRU 259

The Evolution of Prime React with Cagatay Civici - RRU 259

Cagatay Civici is the founder of PrimeFaces, PrimeNG, PrimeReact and PrimeVue. In this episode, they delve into the world of UI component libraries and the business of open source. Join them as they e...

29 Maj 202446min

Navigating React and React Native Evolution - RRU 258

Navigating React and React Native Evolution - RRU 258

Jamon Holmgren is the Co-founder & CTO at Infinite Red, Inc. They dive into the captivating world of React and React Native, exploring the evolution of these technologies and their implications for de...

22 Maj 202454min

Mastermind Groups and Staying Current with Sean Merron - RRU 257

Mastermind Groups and Staying Current with Sean Merron - RRU 257

In this episode, The panelist of React Round-Up, View on Vue, Adventures in Angular, Ruby Rogues, and JavaScript Jabber speak with Sean Merron about Mastermind Groups of Startups and much more. Sean i...

9 Maj 20241h 7min

Lambda School with Ben Nelson - RRU 256

Lambda School with Ben Nelson - RRU 256

In this episode, the panelists talk with Ben Nelson who is a co-founder and CTO of Lambda School. The panelists and Ben talk about Lambda School, the pros & cons of the 4-year university program for d...

1 Maj 202450min

Inside Apache Superset with Evan Rusackas - RRU 255

Inside Apache Superset with Evan Rusackas - RRU 255

Evan Rusackas is a UI/UX designer, front-­end developer, and data visualizer. They delve into the world of open-source development and commercialization. They explore the differences in managing open ...

17 Apr 202442min

Designing Your Life - RRU 254

Designing Your Life - RRU 254

In this episode of React Round Up Charles Max Wood hosts a solo podcast sharing his perspective on designing your perfect life. In this episode he addresses finding your dream job, building your dream...

10 Apr 202427min

The Impact of Open Source Companies and Industry Insights - RRU 253

The Impact of Open Source Companies and Industry Insights - RRU 253

Max Stoiber is the CEO at Stellate. They delve into the open-source versus closed source debate, featuring insights from prominent figures in the tech industry. From the challenges and complexities of...

3 Apr 20241h 19min

Building Resilient Architecture with Monica Lent - RRU 252

Building Resilient Architecture with Monica Lent - RRU 252

Monica Lent has been interested in software from a very young age, and made her first domain name when she was 9 years old. She left her job and founded a startup, analytic tool designed for bloggers ...

27 Mars 20241h 1min

Populärt inom Business & ekonomi

framgangspodden
badfluence
varvet
rss-jossan-nina
rss-borsens-finest
rss-svart-marknad
avanzapodden
uppgang-och-fall
fill-or-kill
rss-inga-dumma-fragor-om-pengar
rss-dagen-med-di
lastbilspodden
borsmorgon
bathina-en-podcast
svd-tech-brief
affarsvarlden
bilar-med-sladd
rss-den-nya-ekonomin
tabberaset
rss-veckans-trade