What is the difference between a Presentational component and a Container component?



What is the difference between a Presentational component and a Container component?..

Answer / Sandeep Kumar Chauhan

A Presentational component (also known as Dumb or Stateless Component) is responsible for rendering UI based on its props. It does not manage any state or side effects. A Container component (also known as Smart or Stateful Component) manages state, side effects and data fetching, often by connecting to a data store like Redux.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More React.js Interview Questions

State the main difference between Pros and State?

1 Answers  


Define the term Redux in React

1 Answers  


When would you use a class component over a functional component?

1 Answers  


Why are browsers unable to read jsx?

1 Answers  


What is the difference between stateful and stateless components.

1 Answers  


What is render() in React? And explain its purpose?

1 Answers  


Which is better angular or react js?

1 Answers  


What a setState is doing?

1 Answers  


Explain the advantages of redux?

1 Answers  


What are refs used for in React?

1 Answers  


Why do we need a router in reactjs?

1 Answers  


When reactjs released?

1 Answers  


Categories