Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

176
Visualizações
Difference between component and container in react redux

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

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

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 connect-ed 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.

For more detail read presentational vs container components by Dan Abramov.

over 4 years ago · Santiago Trujillo Relatório

0

Components

Components let you split the UI into independent, reusable pieces, and think about each piece in isolation. They are sometimes called "presentational components" and the main concern is how things look

Containers

Containers are just like components without UI and Containers are concerned with how things work.. It mainly talks to the redux store for getting and updating the data

see the table comparison from Redux doc

enter image description here

Detailed explanation https://redux.js.org/basics/usage-with-react#presentational-and-container-components

over 4 years ago · Santiago Trujillo Relatório

0

Component which is responsible for fetching data and displaying is called smart or container components. Data can be come from redux, any network call or third party subscription.

Dumb/presentational components are those which are responsible for presenting view based on props received.

Good article with example here

https://www.cronj.com/blog/difference-container-component-react-js/

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda