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

237
Vistas
Is functional componet more faster than class component in react?

I have read in a few places to check this problem, but didnot find any good answer. I hope good answer to it.

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

There is not any noticable performance difference in functional and class components. It is completely dependant on developer's preference what one likes. Just the things to note is,

  • you can reduce the number of lines in a functional component as compared to class component.
  • There is also fewer limitations in functional components as compared to class components
  • You can handle many lifecycle of the component just inside useEffect.

These all point in turn reduce the time of development.


You can refer to this article for more indept details: https://betterprogramming.pub/react-class-vs-functional-components-2327c7324bdd

There is also a benchmarking done in this article. https://jsfiddle.net/69z2wepo/136096/

Here are the findings:

enter image description here

You can notice here that, functional components take less time than class components, but not much significant.

about 4 years ago · Juan Pablo Isaza Denunciar

0

I think no.
It's unlikely to see any performance difference from classes vs functions.
However the way we optimize classes and functions are different.

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