reading-notes

Intro to React and Components

Intro to Props and React.

Component-Based Architecture

What is a “component”?

*A reusable UI element such as tableOfContents composed of HTML, CSS, and JS code.

What are the characteristics of a component?

They are JS functions that return a snippet of structural code to help with breaking down your design into modular, reusable pieces. They must be capitalized to distinguish them from other JS functions.

What are the advantages of using component-based architecture?

Reuasability, cleaner code, and the ability to borrow from open source communities to save time and improve readability of your code.

What is Props and How to Use it in React

What is “props” short for?

Properties.. I think.

How are props used in React?

I could be off base, but it doesn’t seem all that different to how we pass parameters in a normal JS function… just more complicated. Props themselves can also be a component and used to pass information from a parent component to a child component

What is the flow of props?

Parent to Child.

Things I want to know more about

I just realized that I don’t know what React is.. haha