reading-notes

My reading notes


Project maintained by brandomoki Hosted on GitHub Pages — Theme by mattgraham

Introductions to React and Components

Component Based Architecture

  1. 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.
  2. What are the characteristics of a component?
    • Reusability
    • Replaceable
    • Not context specific
    • Extensible
    • Encapsulated
    • Independent
  3. What are the advantages of using component-based architecture?
    • Ease of deployment
    • Reduced cost
    • Ease of development
    • Reuseability
    • Modification of technical complexity
    • Reliability
    • System maintenance and evolution
    • Independent

What is Props and How to use in React

  1. What is a props short for?
    • props stands for properties
  2. How are props used in React?
    • assigned like an attribute then passed to components lke function arguments
  3. What is the flow of props?
    • Uni-directional from the parent