ReactJS Tutorial
Difference between React Presentational and Container Components
What is Presentational and Container Components in ReactJS?
In React, components are often divided into 2 major categories: presentational components and container components.
Each of these categories have unique features. While the presentational components are mostly concerned with generating some markup to be outputted, container components are mostly concerned with the backend operations.
Presentational Component Example:
const Users = props => (
{props.users.map(user => (
{user}
))}
)