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

139
Vistas
React+Electron: Building web & desktop app at the same time with different behaviour

I need to build a website using React and a desktop app for a university project.

They are supposed to have very simillar functionality, so I thought about using Electron.

The main difference is that when using electron I need to have a "download" button in some areas, and a few other webpages ("my downloads" and "upload a file").

  1. Is it possible to easiliy share the frontend code between them,without copying the react code from one to the other each time it is updated?

  2. I thought about having in my React code something akin to

if (running on electron)
    displayAdditionalPages()

if (running on electron)
    fetchDownloadsProgress()

but couldn't find how to do it. Is it possible?

Thank you!

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