what is the react?
- React (also known as React.js or ReactJS) is an open-source front-end JavaScript library forbuilding user interfaces or UI components. It is maintained by Facebook and a community ofindividual developers and companies. React can be used as a base in the development of single-page or mobile applications.
what is component?
- Components are independent and reusable bits of code. They serve the same purpose as avaScript functions, but work in isolation and return HTML via a render() function. Components come in two types, Class components and Function components, in this tutorial we will concentrate on Class components.
What are the charactistics of a component?
- jsx Components. One-way Data Binding. Virtual DOM. Simplicity. Performance.
What are the advantages of using component based architecture?
- Ease of deployment − As new compatible versions become available, it is easier to
- eplace existing versions with no impact on the other components or the system as a whole.
- Reduced cost − The use of third-party components allows you to spread the cost of development and maintenance.
What is props short for?
- The term “props” stands for “properties” and is used for passing data from one component to another. As opposed o state in React, props are read-only. So, the data coming from a parent component can’t be changed by the child component.
How are props used in React?
- Props” is a special keyword in React, which stands for roperties and is being used for passing data from one component to another. Furthermore, props data is read- only, which means that data coming from the parent should not be changed by child components.