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

197
Vistas
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 Respuestas
Responde la pregunta

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