InterviewSolution
| 1. |
What is a dumb component or presentational component in ReactJS? |
|
Answer» In ReactJS, as your application size is growing, you are going to have so many SMALL or big component. At this stage, it’s always better to categorize and decided the roles and responsibilities of the component. Based on role and responsibilities, we can divide the component in two PARTS. One is a presentational component and another type of components are container component. We also call presentational component as a stateless component or dumb component. Container components are also known as a stateful component or smart component. It is very important to distinguish between the presentational component and the container component. Presentational components show the following BEHAVIOUR:
|
|