Reading Notes
Component-Based Architecture
What is a “component”?
A component is a modular, protable, replaceable, and reusable set of well-defined functionality that encapsulates its implementation and exporting it as a higher-level interface.
What are the characteristics of a component?
- Reusability
- Replaceable
- Not Context Specific
- Extensible
- Encapsulated
- Independent
What are the advantages of using component-based architecture?
- Ease of deployment
- Reduced cost
- Ease of development
- Reusable
- Modification of technical complexity
- Reliability
- System maintenance and evolution
- Independent
What is Props and How to Use it in React
What is “props” short for?
Properties
How are props used in React?
For passing data from one component to another.
What is the flow of props?
Uni-directional flow, from parent to child.