reading-notes

Code Fellows courses Notes

This project is maintained by QamarAlkhatib

Readings: Introduction to React and Components

Component Based Architecture


What is a component?

A component is a well-defined set of modular, portable, replaceable, and reusable functionality that encapsulates and exports its implementation as a higher-level interface. A component is a software object that encapsulates specific functionality or a group of functionalities and is designed to interact with other components. It has a clearly defined interface and follows a specified behavior that other components in an architecture should follow.


What are the charactistics of a component?


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 and is being used for passing data from one component to another.


How are props used in React?

  1. define an attribute and its value(data)
  2. Then pass it to child component(s) by using Props

  3. render the Props Data

What is the flow of props?


Things I want to know more about?