What is the difference between component and container in react Redux?

Technology CommunityCategory: ReactWhat is the difference between component and container in react Redux?
VietMX Staff asked 4 years ago

Component is part of the React API. A Component is a class or function that describes part of a React UI. Container is an informal term for a React component that is connected to a redux store. Containers receive Redux state updates and dispatch actions, and they usually don’t render DOM elements; they delegate rendering to presentational child components.