Reading 01

Reading-notes.md


Reading 01

What is a Component?

A component is a modular, portable, replaceable, and reusable set of well-defined functionality that encapsulates its implementation and exporting it as a higher-level interface.

What are the charactistics of a component?

  1. Reusability
  2. Replaceable
  3. Not context specific
  4. Extensible
  5. Encapsulated
  6. Independent

What are the advantages of using component based architecture?

  1. Ease of deployment
  2. Reduced cost
  3. Ease of development
  4. Reusable
  5. Modification of technical complexity
  6. Reliability
  7. System maintenance and evolution
  8. Independent

What is props short for?

React is a component-based library which divides the UI into little reusable pieces. In some cases, those components need to communicate (send data to each other) and the way to pass data between components is by using propsReact is a component-based library which divides the UI into little reusable pieces. In some cases, those components need to communicate (send data to each other) and the way to pass data between components is by using props.

How are props used in React?

1.Firstly, define an attribute and its value(data)

2.Then pass it to child component(s) by using Props

3.Finally, render the Props Data

What is the flow of props?

One way direction from the Parent Components to Child Components Only.