Intro to Props and React.
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” 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.
I just realized that I don’t know what React is.. haha