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

129
Visualizações
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 à 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