Introduction to React and Components
Component Based Architecture
- What is a component?
- a modular and reusable set of functionality
- a software object that encapsulating certain functionality
- What are the charactristics of a component?
- reusability
- replaceable
- not context specific
- extensible
- encapsulated
- independent
- What are the advantages of using component based architecture?
- ease of deployment
- reduced cost
- ease of development
- reusable
- modification of technical complexity
- reliability
- system maintenance and evolution
- independent
What is Props and How to Use it in React
- What is props short for?
- props stands for properties
- How are props used in React?
- pass the props into a function and use it to read certain attributes
-
What is the flow of props?
- define an attribute and its value
- pass it to child component by using props
- render the props data