read 1
Component Based Architecture
- What is a component?
A component is a software object, intended to interact with other components, encapsulating certain functionality or a set of functionalities. It has an obviously defined interface and conforms to a recommended behavior common to all components within an architecture. - What are the charactistics 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?
Props is a special keyword in React, which stands for properties
How are props used in React?
define an attribute and its value(data), Then pass it to child component(s) by using Props, Finally, render the Props Data
What is the flow of props?
uni-directional flow. (one way from parent to child)