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

235
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 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