Questions:

What is a React Component?

Components are what make the React application. It is the core of React application. Without understanding the components, it is difficult to develop React application and hence it is inevitable

Sample Answer:

A React component is nothing but a reusable self contained piece of UI that defines what should be displayed on the screen to the user using the application. There are 2 types of components in React. One is the Functional Component and the other one is the Class Component. Though Class components are old but it is still in use. Functional Components are simpler and modern standard was of creating components using Hooks. Props (properties) and state maintenance are 2 inevitable parts of Components to render dynamic content.

Related Posts