reading-notes

Class 01: React and Components Note

Component-Based Architecture

Definition of a Component: In the context of web development and React, a component is a reusable, self-contained unit that represents a specific piece of a user interface (UI). Components can range from simple, like a button, to complex, like an entire form or page.

Characteristics of a Component:

Advantages of Component-Based Architecture:

Props in React

What is “Props” Short For?: “Props” is short for properties. In React, props are used for passing data from one component to another.

How are Props Used in React?: Props are passed to a component as attributes and can be accessed within the component. They allow data to be passed down the component tree. Data with props are being passed in a uni-directional flow (one way from parent to child).

Flow of Props:

Things I Want to Know More About