Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

108
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda