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