adspace


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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use events in reactjs? Give an example of using events?

565


How would you create higher order components (hocs) in react.js?

448