Component-Based Architecture
- What is a “component”?
- a component is a modular, portable, replaceable, and reusable set of well-defined funtionality that encapsulates its implementation and exports it as a higher-level interface.
- What are the characteristics of a component?
- reusability, replaceable, not context specific, extensible, encapsulated, and 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?
- How are props used in React?
- passing data from one component to another
- What is the flow of props?
- uni-directional; one way from parent to child
- props data is read-only and should not be changed by the child components