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

109
Visualizações
Functions are not valid as a React child. This may happen if you return a Component instead of from render. Redux

I am working with react-redux, and I use stateless components

The error

This is my index.js

My app.js

the store is in another index.js file, inside a folder called redux

I have tried NewHOC, but I can't get rid of the error

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I believe you've had a look at this question since you mentioned "NewHOC".

With that in mind, ensure that in all your components you make use of a return statement if they are functional components or have a render method if they are class based components.

Based on your screenshots, it seems RouterDirectory is the likely culprit as the screenshots you did upload look fine but we can't see RouterDirectory.

If you can provide the code for RouterDirectory we can help you further.

about 4 years ago · Juan Pablo Isaza 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