View on GitHub

reading-notes

read 1

Component Based Architecture

  1. 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.
  2. What are the charactistics of a component?
  1. What are the advantages of using component based architecture?

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)