DEV Community

Cover image for 3 Best Practices for Working With React Components

3 Best Practices for Working With React Components

Dr. Michael Garbade on September 06, 2018

(This article was originally published on our blog here ). React.js (also referred to as ReactJS or React) is a popular JavaScript library for cr...
Collapse
 
chimon1984 profile image
Ryan Edge

One of the core tenants of component driven design is the single responsibility principle so that might be worth mentioning when considering how and when to break up components.

Collapse
 
educationecosystem profile image
Dr. Michael Garbade

True, thanks for mentioning that!

Collapse
 
jglasovic profile image
jglasovic

In the third example, you create a functional component named Liveedu and then in App component you use a component named Button. Small mistake but everything else is explained perfectly :))

Collapse
 
educationecosystem profile image
Dr. Michael Garbade

Thanks for seeing that!