What is a Component?
- A component is modular, portable, replaceable, and reusable set of well-defined functionality that encapsulates its implementation and exporting it as a higher-level interface
What are Characteristics of a component?
- characteristics include, reusability, replaceable, not context specific, extensible, encapsulated, independent.
What are the advantages of using component-based architecture?
- some advantages are, ease of deployment, reduced cost, reusable, modification of technichal complexity, reliability, system maintenance and evolution, independent.
What is props short for?
- props is short for properties and is being used for pasing data from one component to another.
How are props used in react?
- they are used by defining an atttributeand its value, then pass it to child components by using props, then render the propps data.
What is the flow of props?
- uni-directional flow (from parent to child)
Links to futher reading
- React Tutorial through ‘Passing Data Through Props’
- React Docs - Hello world
- React Docs - Introducing JSX
- React Docs - Rendering elements
- React Docs - Components and props
- I want to know more about component based architechture.