reading-notes

Class 1 Introduction to React and Components

Link to article: Component-Based Architecture

Link to article: What is Props and How to Use it in React


Component-Based Architecture

What is a “component”?

A component is a modular and reusable software object that encapsulates well-defined functionality and is designed to interact with other components through a clearly defined interface. It can be deployed independently and composed by third parties.

What are the characteristics 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?

Props are used to pass data from one component to another in React. Props are immutable (cannot be changed) and are used to pass data and callback functions down to child components.

What is the flow of props?

Props are passed down from a parent component to a child component. The child component then uses the props to render the desired output.