Reading-notes

Introduction to React and Components

Component Based Architecture

What is a component?

A software component can be defined as a unit of composition with a contractually specified interface and explicit context dependencies only. That is, a software component can be deployed independently and is subject to composition by third parties.

### A component can have three different views − object-oriented view, conventional view, and process-related view:

A component is viewed as a set of one or more cooperating classes. Each problem domain class (analysis) and infrastructure class (design) are explained to identify all attributes and operations that apply to its implementation. It also involves defining the interfaces that enable classes to communicate and cooperate.

It is viewed as a functional element or a module of a program that integrates the processing logic, the internal data structures that are required to implement the processing logic and an interface that enables the component to be invoked and data to be passed to it.

In this view, instead of creating each component from scratch, the system is building from existing components maintained in a library. As the software architecture is formulated, components are selected from the library and used to populate the architecture.

What are the charactistics of a component?

Characteristics of Components divided to :

What are the advantages of using component based architecture?

What is Props and How to Use it in React

What is Props?

But the important part here is that data with props are being passed in a uni-directional flow. (one way from parent to child)

How are props used in React?

What is the flow of props?

### That data with props are being passed in a uni-directional flow. (one way from parent to child)

## Things I want to know more about: