Components

7 bookmarks
Custom sorting
How to Create a Reusable Modal Component in React
How to Create a Reusable Modal Component in React
When using React, we strive to create reusable components as much as we can to limit the number of components and repetition. This keeps your code “DRY”. DRY is a concept you may have come across—it means “Don’t Repeat Yourself”. DRY is a coding prin...
·freecodecamp.org·
How to Create a Reusable Modal Component in React
What are Controlled and Uncontrolled Components in React.js?
What are Controlled and Uncontrolled Components in React.js?
In React.js, managing form inputs and user interactions is a crucial part of building dynamic web applications. Two key concepts that developers need to understand are controlled and uncontrolled components. These concepts define how form data is ha...
Joan Ayebola
·freecodecamp.org·
What are Controlled and Uncontrolled Components in React.js?
How to add multiple classes to a ReactJS Component?
How to add multiple classes to a ReactJS Component?
I am new to ReactJS and JSX and I am having a little problem with the code below. I am trying to add multiple classes to the className attribute on each li: <li key={index} className={activeC...
·stackoverflow.com·
How to add multiple classes to a ReactJS Component?
Fighting inter-component HTML bloat
Fighting inter-component HTML bloat
The separation of concerns we aim for in design systems has an unwanted byproduct: bloated HTML in the space between components. What can we do as component authors to encourage good markup hygiene at the inter-component level?
·elisehe.in·
Fighting inter-component HTML bloat
Component Composition is great btw
Component Composition is great btw
Component composition is one of the best parts of React, and I think we should take more time to break our components into manageable parts before littering one component with conditional renderings.
·tkdodo.eu·
Component Composition is great btw