Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!