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

194
Visualizações
Why doesn't my electron app change when I change the code?

App.jsx

import * as React from 'react';
import * as ReactDOM from 'react-dom';

function render() {
    ReactDOM.render(<h2>Hello from React!</h2>, document.body);
}

render();

So, right now my friend made a React website that I have to try to port over to an Electron App that I got off of the team's Github. However, when I change the code into this:

App.jsx

import * as React from 'react';
import * as ReactDOM from 'react-dom';
import App from './App';

function render() {
    ReactDOM.render(<h1>Goodbye</h1>, document.body);
}

render();

Nothing changes at all. All that pops up is the "Hello from React!" from earlier. I search throughout all my code files for any other instances of "Hello from React!" with vscode, but I do not see any. Does anyone know why this is happening and what I can do to fix it?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You need to package your application again:

npm run package
npm run make

Then, wherever you have your application installed (pkg not app builder), go into folder:

/path/to/<app name>/<app name>

Then click file

Update.exe

Re-launch your application and it should be updated.

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