Component-based Architecture
Component-Based Arhitecture
- A component is a piece of the code that controls a certain functionality.
- Characteristics inculde: Reusability, replaceable, not context specific, extensible, encapsulated, and independent.
- Component based architecture has a few advantages:
- it has easy deployment
- reduces costs
- easier development
- reusable
- “modification of technical complexity”
- its reliable
- great for system maintenance and evolution
- and its independent.
Props and How to use it in React
Props and how its used in React
- Props is short for properties
- to use props you follow these steps
- Define the attribute and data (value)
- Pass it to the child component using props
- render the props data
- Props flow is, like the rest of React, one directional and flows downward