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

190
Vistas
In a React App, are only imported functions counted towards the size / overhead of the APP for the user?

For example, my React APP depends on MUI package.

But I only import the Slider and AutoComplete from the package.

Will only these 2 components have an effect on my APP in terms of performance to the end user? Or does the entire package have the same effect regardless just because it is a dependency?

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

0

Webpack (shipped with create-react-app) makes sure that imports like that are transformed in production to minimise bundle size.

However, this is not the case in development. Without custom babel config, you will import the entire library and your app will take forever to start in development mode. The Mui docs has a section on how to deal with that, but it's a little outdated wrt/ create-react-app. Nowadays craco exists that makes this whole process a lot easier. But if you can't be bothered to learn yet another CRA anti-eject library, you can follow Mui's tutorial and get the exact same result, just less future-proof.

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